svn: /phpdoc/en/trunk/reference/var/functions/ serialize.xml unserialize.xml

From: Date: Tue, 16 Aug 2011 10:21:18 +0000
Subject: svn: /phpdoc/en/trunk/reference/var/functions/ serialize.xml unserialize.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8623@lists.php.net to get a copy of this message
rquadling Tue, 16 Aug 2011 10:21:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=314997 Log: Link serialize() and unserialize() to __sleep() and __wakeup(). Changed paths: U phpdoc/en/trunk/reference/var/functions/serialize.xml U phpdoc/en/trunk/reference/var/functions/unserialize.xml Modified: phpdoc/en/trunk/reference/var/functions/serialize.xml =================================================================== --- phpdoc/en/trunk/reference/var/functions/serialize.xml 2011-08-16 10:16:21 UTC (rev 314996) +++ phpdoc/en/trunk/reference/var/functions/serialize.xml 2011-08-16 10:21:18 UTC (rev 314997) @@ -42,11 +42,11 @@ </para> <para> When serializing objects, PHP will attempt to call the member function - <link linkend="language.oop5.magic">__sleep</link> prior to serialization. + <link linkend="language.oop5.magic.sleep">__sleep</link> prior to serialization. This is to allow the object to do any last minute clean-up, etc. prior to being serialized. Likewise, when the object is restored using <function>unserialize</function> the <link - linkend="language.oop5.magic">__wakeup</link> member function is called. + linkend="language.oop5.magic.sleep">__wakeup</link> member function is called. </para> <note> <para> @@ -129,7 +129,8 @@ <para> Note that many built-in PHP objects cannot be serialized. However, those with this ability either implement the <interfacename>Serializable</interfacename> interface or the - magic <literal>__sleep</literal> and <literal>__wakeup</literal> methods. If an + magic <link linkend="language.oop5.magic.sleep">__sleep</link> and + <link linkend="language.oop5.magic.sleep">__wakeup</link> methods. If an internal class does not fulfill any of those requirements, it cannot reliably be serialized. </para> @@ -147,6 +148,8 @@ <simplelist> <member><function>unserialize</function></member> <member><link linkend="language.oop5.serialization">Serializing Objects</link></member> + <member><link linkend="language.oop5.magic.sleep">__sleep</link></member> + <member><link linkend="language.oop5.magic.sleep">__wakeup</link></member> </simplelist> </para> </refsect1> Modified: phpdoc/en/trunk/reference/var/functions/unserialize.xml =================================================================== --- phpdoc/en/trunk/reference/var/functions/unserialize.xml 2011-08-16 10:16:21 UTC (rev 314996) +++ phpdoc/en/trunk/reference/var/functions/unserialize.xml 2011-08-16 10:21:18 UTC (rev 314997) @@ -33,7 +33,8 @@ <para> If the variable being unserialized is an object, after successfully reconstructing the object PHP will automatically attempt to call the - <function>__wakeup</function> member function (if it exists). + <link linkend="language.oop5.magic.sleep">__wakeup</link> member + function (if it exists). </para> <para> <note> @@ -166,6 +167,7 @@ <member><function>serialize</function></member> <member><link linkend="language.oop5.autoload">Autoloading Objects</link></member> <member><link linkend="unserialize-callback-func">unserialize_callback_func</link></member> + <member><link linkend="language.oop5.magic.sleep">__wakeup</link></member> </simplelist> </para> </refsect1>

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