svn: /phpdoc/en/trunk/language/oop5/ serialization.xml

From: Date: Fri, 24 May 2013 17:10:40 +0000
Subject: svn: /phpdoc/en/trunk/language/oop5/ serialization.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-11351@lists.php.net to get a copy of this message
aharvey Fri, 24 May 2013 17:10:40 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=330347 Log: Integrate note 112050 by adding a paragraph noting that __sleep() and __wakeup() provide further options in terms of object serialisation. Changed paths: U phpdoc/en/trunk/language/oop5/serialization.xml Modified: phpdoc/en/trunk/language/oop5/serialization.xml =================================================================== --- phpdoc/en/trunk/language/oop5/serialization.xml 2013-05-24 14:27:14 UTC (rev 330346) +++ phpdoc/en/trunk/language/oop5/serialization.xml 2013-05-24 17:10:40 UTC (rev 330347) @@ -90,6 +90,15 @@ file <literal>classa.inc</literal> on all of your pages, not only <filename>page1.php</filename> and <filename>page2.php</filename>. </para> + + <para> + Beyond the above advice, note that you can also hook into the serialization + and unserialization events on an object using the + <link linkend="object.sleep">__sleep()</link> and + <link linkend="object.wakeup">__wakeup()</link> methods. Using + <link linkend="object.sleep">__sleep()</link> also allows you to only + serialize a subset of the object's properties. + </para> </sect1> <!-- Keep this comment at the end of the file

« previous php.doc.cvs (#11351) next »