Re: Serializing objects, using __sleep and __wakeup?

From: Date: Fri, 07 Jul 2000 20:59:54 +0000
Subject: Re: Serializing objects, using __sleep and __wakeup?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23832@lists.php.net to get a copy of this message
On Fri, 7 Jul 2000, Andrei Zmievski wrote: > __sleep() is called when the object is being serialized. It's supposed > to return an array of names of object properties that should be > serialized. > > __wakeup() is called after all the object properties have been > deserialized/instantiated. It should be used for any additional > initialization, if necessary. This works great! Thanks to everyone for the info! Regards, -\- David Eriksson -/- "An expert in a particular computer language is really an expert in the work-arounds necessary to use this language to perform useful work." - Richard B. Johnson

« previous php.dev (#23832) next »