sean Mon Jan 10 11:54:21 2005 EDT
Modified files: /phpdoc/en/language/oop5 magic.xml Log: more grammar http://cvs.php.net/diff.php/phpdoc/en/language/oop5/magic.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/language/oop5/magic.xml diff -u phpdoc/en/language/oop5/magic.xml:1.7 phpdoc/en/language/oop5/magic.xml:1.8 --- phpdoc/en/language/oop5/magic.xml:1.7 Mon Jan 10 11:44:13 2005 +++ phpdoc/en/language/oop5/magic.xml Mon Jan 10 11:54:21 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <sect1 id="language.oop5.magic"> <title>Magic Methods</title> <para> @@ -33,22 +33,22 @@ <para> <function>serialize</function> checks if your class has a function with the magic name <literal>__sleep</literal>. If so, that function is - ran prior to any serialization. It can clean up the object + executed prior to any serialization. It can clean up the object and is supposed to return an array with the names of all variables of that object that should be serialized. </para> <para> The intended use of <literal>__sleep</literal> is to close any - database connections that object may have, commit pending + database connections that the object may have, commit pending data or perform similar cleanup tasks. Also, the function is - useful if you have very large objects which need not be + useful if you have very large objects which do not need to be saved completely. </para> <para> Conversely, <function>unserialize</function> checks for the presence of a function with the magic name <literal>__wakeup</literal>. If present, this function can - reconstruct any resources that object may have. + reconstruct any resources that the object may have. </para> <para> The intended use of <literal>__wakeup</literal> is to