On Tuesday 18 September 2007, Andrew Ballard wrote:
> > I'm guessing that the answer to all of my questions is some how
> > wrapped up in visibility and overloading. Unfortunately I cannot find
> > any resource that documents the interactions. TIA.
>
> As I understand it, the __get and __set do
> 1) It seems that the getter and setter are not called on every single
> call. For example, if I do the following:
>
> $bar = new foo;
> $bar->x = 'x';
>
> There is no output. I would expect to see "Setting $this->x to x."
> Another example:
>
> $bar = new foo;
> $bar->y = 'y';
> echo $bar->y;
>
2 matches
Mail list logo