Defines the interface for all persistent object definition managers.
Definition managers are used to fetch the definition of a specific persistent object. The definition is returned in form of a ezcPersistentObjectDefinition structure.
Source for this file: /PersistentObject/src/interfaces/definition_manager.php
Version: | //autogen// |
Child Class | Description |
---|---|
ezcPersistentCodeManager | Handles persistent object definitions in plain code style. |
ezcPersistentCacheManager | Caches fetched definitions so they don't have to be read from the original source for each use. |
ezcPersistentMultiManager | Makes it possible to fetch persistent object definitions from several sources. |
protected static ezcPersistentObjectDefinition |
setupReversePropertyDefinition(
$def
)
Returns the definition $def with the reverse relations field correctly set up. |
public abstract ezcPersistentObjectDefinition |
fetchDefinition(
$class
)
Returns the definition of the persistent object with the class $class. |
Returns the definition $def with the reverse relations field correctly set up.
This method will go through all of the properties in the definition and set up the columns field in the definition.
Name | Type | Description |
---|---|---|
$def |
ezcPersistentObjectDefinition | The target persistent object definition. |
Returns the definition of the persistent object with the class $class.
Name | Type | Description |
---|---|---|
$class |
string |
Type | Description |
---|---|
ezcPersistentDefinitionNotFoundException |
if no such definition can be found. |
Method | Description |
---|---|
ezcPersistentCodeManager::fetchDefinition() |
Returns the definition of the persistent object with the class $class. |
ezcPersistentCacheManager::fetchDefinition() |
Returns the definition of the persistent object with the class $class. |
ezcPersistentMultiManager::fetchDefinition() |
Returns the definition of the persistent object with the class $class. |