note 22308 added to ref.overload
| From: | ben@php.net | Date: | Thu, 13 Jun 2002 14:06:48 +0000 |
| Subject: | note 22308 added to ref.overload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31799@lists.php.net to get a copy of this message | ||
The docs don't say this yet, probably because it goes without saying, but if you want to try
this extension you have to add "--enable-overload" to your configure args.
If you've got the time, please help test this extension. Even without __call, the benefits of
this extension are huge. PHP class designers can finally control how class properties are accessed
and modified.
One thing you may want to note is that the __get and __set methods won't be called if the named
property is already defined within the object.
It looks like Andrei decided this after he wrote the documentation. This means that part of the
example above is no longer correct. It should actually read:
print: $o->a: 111
--
http://www.php.net/manual/en/ref.overload.php
http://master.php.net/manage/user-notes.php?action=edit+22308
http://master.php.net/manage/user-notes.php?action=delete+22308
http://master.php.net/manage/user-notes.php?action=reject+22308