Path

ez components / documentation / api reference / 2007.1.1 / persistentobject


eZ Components 2007.1.1

PersistentObject: ezcPersistentCacheManager

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

Class: ezcPersistentCacheManager

Caches fetched definition so they don't have to be read from the original source for each use. [source]
The cache is typically used to wrap around another ezcPersistentDefinitionManager of your choice.

Parents

ezcPersistentDefinitionManager
   |
   --ezcPersistentCacheManager

Method Summary

public ezcPersistentCacheManager __construct( $manager )
Constructs a new definition cache.
public ezcPersistentDefinition fetchDefinition( $class )
Returns the definition of the persistent object with the class $class.

Inherited Methods

From ezcPersistentDefinitionManager :
public abstract ezcPersistentDefinition 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.

Methods

__construct

ezcPersistentCacheManager __construct( ezcPersistentDefinitionManager $manager )
Constructs a new definition cache.

Parameters

Name Type Description
$manager ezcPersistentDefinitionManager  

fetchDefinition

ezcPersistentDefinition fetchDefinition( string $class )
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.

Parameters

Name Type Description
$class string  

Throws

ClassDescription
ezcPersistentDefinitionNotFoundException if no such definition can be found.

Redefinition of

Method Description
ezcPersistentDefinitionManager::fetchDefinition() Returns the definition of the persistent object with the class $class.

Last updated: Wed, 28 Nov 2007