irchtml Mon Jan 10 11:44:13 2005 EDT
Modified files: /phpdoc/en/language/oop5 magic.xml Log: Bug #31473: Grammar errors on Magic Methods http://cvs.php.net/diff.php/phpdoc/en/language/oop5/magic.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc/en/language/oop5/magic.xml diff -u phpdoc/en/language/oop5/magic.xml:1.6 phpdoc/en/language/oop5/magic.xml:1.7 --- phpdoc/en/language/oop5/magic.xml:1.6 Mon Nov 22 10:23:03 2004 +++ phpdoc/en/language/oop5/magic.xml Mon Jan 10 11:44:13 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <sect1 id="language.oop5.magic"> <title>Magic Methods</title> <para> @@ -33,13 +33,13 @@ <para> <function>serialize</function> checks if your class has a function with the magic name <literal>__sleep</literal>. If so, that function is - being run prior to any serialization. It can clean up the object + ran 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, committing pending + database connections that 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 saved completely.