Re: Almost Recursion

From: Date: Fri, 16 Jan 2009 19:45:13 +0000
Subject: Re: Almost Recursion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-286519@lists.php.net to get a copy of this message
Nathan Rixham wrote:
Here's a little recursion problem I'd like some input on - the task, to remove recursion from this little set of 3 classes, without removing any functionality.
to be very specific; the problem is caused by a serializer (which cannot change); now this serializer calls the get methods automatically, that is where it's running in to the recursion; the serializer knows what get methods to call by the class type in the setter. (a work around for php not supporting strong type setting on properties/attributes)

« previous php.general (#286519) next »