PersistentObject: ezcPersistentMultiManager
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcPersistentMultiManager
|
Makes it possible to fetch persistent object definitions from several sources. [
source]
The multimanager will try each of the provided ezcPersistentDefinitionManagers to locate a valid definition for a class.
For best performance add the managers which are most likely to contain the definitions first.
Parents
ezcPersistentDefinitionManager
|
--ezcPersistentMultiManager
Method Summary
|
public ezcPersistentMultiManager |
__construct(
[$managers = array()] )
Constructs a new multimanager that will look for persistent object definitions in all $managers. |
|
public void |
addManager(
$manager )
Adds a manager that can provide persistent object definitions. |
|
public ezcPersistentDefinition |
fetchDefinition(
$class )
Returns the definition of the persistent object with the class $class. |
Inherited Methods
From
ezcPersistentDefinitionManager :
Methods
__construct
ezcPersistentMultiManager __construct(
[
$managers = array()] )
Constructs a new multimanager that will look for persistent object definitions in all $managers.
Parameters
| Name |
Type |
Description |
$managers |
array(ezcPersistentDefinitionManager) |
|
addManager
Adds a manager that can provide persistent object definitions.
Parameters
fetchDefinition
ezcPersistentDefinition fetchDefinition(
string
$class )
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. |
Redefinition of
Last updated: Mon, 05 Jan 2009