Re: Re: __set() / __get() : limitation and/or unintentional behavoiur?
| From: | Matthew C. Kavanagh | Date: | Sat, 01 Apr 2006 08:41:53 +0000 |
| Subject: | Re: Re: __set() / __get() : limitation and/or unintentional behavoiur? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22637@lists.php.net to get a copy of this message | ||
Write your __set to not allow arrays to be set, and make arrays within your object private or objects with __set in their own right.
You could in fact create a "CustomArray" or something and allow CustomArrays to be __set'd in your object, then control their contents with CustomArray->__set().
There's no problem here.