Re: Re: __set() / __get() : limitation and/or unintentional behavoiur?

From: 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 [email protected] 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.


Thread (7 messages)

« previous php.internals (#22637) next »