Path

ez components / documentation / api reference / 2007.2.1 / persistentobject


eZ Components 2007.2.1

PersistentObject: ezcPersistentGeneratorDefinition

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcPersistentGeneratorDefinition

Defines a persistent object id generator. [source]
For more information on how to use this class see ezcPersisentObjectIdProperty

Parents

ezcBaseStruct
   |
   --ezcPersistentGeneratorDefinition

Member Variables

public string $class
The name of the class implementing the generator.
public array(string=>string) $params
Any parameters required by the generator.

Parameters should be in the format array('parameterName' => parameterValue )

Method Summary

public ezcPersistentGeneratorDefinition __construct( $class, [$params = array()] )
Constructs a new PersistentGeneratorDefinition where $class contains name of the class to load and $params contains a list of parameters provided to the constructor of that class.
public static ezcPersistentGeneratorDefinition __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcPersistentGeneratorDefinition __construct( string $class, [ $params = array()] )
Constructs a new PersistentGeneratorDefinition where $class contains name of the class to load and $params contains a list of parameters provided to the constructor of that class.

Parameters

Name Type Description
$class string  
$params array  

__set_state

ezcPersistentGeneratorDefinition __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Parameters

Name Type Description
$array array(string=>mixed)  

Last updated: Thu, 31 Jan 2008