PersistentObject: ezcPersistentCodeManager
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcPersistentCodeManager
|
Handles persistent object definitions in plain code style. [
source]
Each definition must be in a separate file in the directory specified to the constructor. The filename must be the same as the lowercase name of the persistent object class with .php appended. Each file should return the definition of one persistent object class.
Parents
ezcPersistentDefinitionManager
|
--ezcPersistentCodeManager
Method Summary
|
public ezcPersistentCodeManager |
__construct(
$dir )
Constructs a new code manager that will look for persistent object definitions in the directory $dir. |
|
public ezcPersistentObjectDefinition |
fetchDefinition(
$class )
Returns the definition of the persistent object with the class $class. |
Inherited Methods
From
ezcPersistentDefinitionManager :
Methods
__construct
ezcPersistentCodeManager __construct(
string
$dir )
Constructs a new code manager that will look for persistent object definitions in the directory $dir.
Parameters
| Name |
Type |
Description |
$dir |
string |
|
fetchDefinition
Returns the definition of the persistent object with the class $class.
Parameters
| Name |
Type |
Description |
$class |
string |
|
Throws
| Class | Description |
ezcPersistentDefinitionNotFoundException |
if no such definition can be found. |
ezcPersistentDefinitionMissingIdPropertyException |
if the definition does not have an "idProperty" attribute. |
Redefinition of
Last updated: Tue, 02 Dec 2008