Serializable Interface Reference
[Zend engine classes]

Interface for customized serializing. More...

List of all members.

Public Member Functions

 serialize ()
 unserialize ($serialized)


Detailed Description

Interface for customized serializing.

Since:
5.1
Classes that implement this interface no longer support __sleep() and __wakeup(). The method serialized is called whenever an instance needs to be serialized. This does not invoke __destruct() or has any other side effect unless programmed inside the method. When the data is unserialized the class is known and the appropriate unserialize() method is called as a constructor instead of calling __construct(). If you need to execute the standard constructor you may do so in the method.

Definition at line 581 of file spl.php.


Member Function Documentation

Serializable::serialize (  ) 

Returns:
string representation of the instance

Serializable::unserialize ( serialized  ) 

Note:
This is a constructor

Parameters:
$serialized data read from stream to construct the instance


The documentation for this interface was generated from the following file:
Generated on Thu Apr 26 01:07:29 2007 for SPL-StandardPHPLibrary by  doxygen 1.5.2