From 18b3b52ef257d8aef2c7723002fce9cdd621f418 Mon Sep 17 00:00:00 2001 From: Sean Coates Date: Mon, 10 Jan 2005 16:54:21 +0000 Subject: [PATCH] more grammar git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@176870 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/magic.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/language/oop5/magic.xml b/language/oop5/magic.xml index 18bf0ce418..6c3e82ca14 100644 --- a/language/oop5/magic.xml +++ b/language/oop5/magic.xml @@ -1,5 +1,5 @@ - + Magic Methods @@ -33,22 +33,22 @@ serialize checks if your class has a function with the magic name __sleep. 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. The intended use of __sleep 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. Conversely, unserialize checks for the presence of a function with the magic name __wakeup. If present, this function can - reconstruct any resources that object may have. + reconstruct any resources that the object may have. The intended use of __wakeup is to