RE: [PHP] __get() accessor question (a bug maybe?)

From: Date: Wed, 15 Nov 2006 16:28:02 +0000
Subject: RE: [PHP] __get() accessor question (a bug maybe?)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-244675@lists.php.net to get a copy of this message
> From what I see, the __get() accessor function is triggerred only from > OUTSIDE the class. > From my understanding of OOP, that is how it should behave. __get and __set methods are there to abstract away the actual member variables and provide a consistent interface to other classes. When calling member variables from within the same class, they should be accessed directly. Edward

« previous php.general (#244675) next »