Caches fetched definitions so they don't have to be read from the original source for each use.
The cache is typically used to wrap around another ezcPersistentDefinitionManager of your choice.
Source for this file: /PersistentObject/src/managers/cache_manager.php
ezcPersistentDefinitionManager | --ezcPersistentCacheManager
Version: | //autogen// |
public ezcPersistentCacheManager |
__construct(
$manager
)
Constructs a new definition cache. |
public ezcPersistentObjectDefinition |
fetchDefinition(
$class
)
Returns the definition of the persistent object with the class $class. |
From ezcPersistentDefinitionManager | |
---|---|
public abstract ezcPersistentObjectDefinition |
ezcPersistentDefinitionManager::fetchDefinition()
Returns the definition of the persistent object with the class $class. |
protected static ezcPersistentObjectDefinition |
ezcPersistentDefinitionManager::setupReversePropertyDefinition()
Returns the definition $def with the reverse relations field correctly set up. |
Constructs a new definition cache.
Name | Type | Description |
---|---|---|
$manager |
ezcPersistentDefinitionManager |
Returns the definition of the persistent object with the class $class.
If a definition has been requested already the definition will be served from the cache.
Name | Type | Description |
---|---|---|
$class |
string |
Type | Description |
---|---|
ezcPersistentDefinitionNotFoundException |
if no such definition can be found. |
Method | Description |
---|---|
ezcPersistentDefinitionManager::fetchDefinition() |
Returns the definition of the persistent object with the class $class. |