Re: [PHP] Why do I have to declare __set if I declare __get for read-only properties?

2005-04-05 Thread Marek Kilimajer
C Drozdowski wrote: Howdy, I'd like to access some of the private members of my classes as read-only properties without resorting to function calls to access them. (e.g. $testClass-privateMember instead of $testClass-privateMember(), etc) Based on my research and testing, using the __get and

[PHP] Why do I have to declare __set if I declare __get for read-only properties?

2005-04-04 Thread C Drozdowski
Howdy, I'd like to access some of the private members of my classes as read-only properties without resorting to function calls to access them. (e.g. $testClass-privateMember instead of $testClass-privateMember(), etc) Based on my research and testing, using the __get and __set overloading