Path

ez components / documentation / api reference / 2009.2.1 / persistentobject


eZ Components 2009.2.1

PersistentObject: ezcPersistentDefinitionManager

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

Class: ezcPersistentDefinitionManager

Defines the interface for all persistent object definition managers. [source]
Definition managers are used to fetch the definition of a specific persistent object. The definition is returned in form of a ezcPersistentObjectDefinition structure.

Descendents

Child Class Description
ezcPersistentMultiManager Makes it possible to fetch persistent object definitions from several sources.
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.

Method Summary

public abstract ezcPersistentObjectDefinition fetchDefinition( $class )
Returns the definition of the persistent object with the class $class.
protected static ezcPersistentObjectDefinition setupReversePropertyDefinition( $def )
Returns the definition $def with the reverse relations field correctly set up.

Methods

fetchDefinition

ezcPersistentObjectDefinition fetchDefinition( string $class )
Returns the definition of the persistent object with the class $class.

Parameters

Name Type Description
$class string  

Throws

ClassDescription
ezcPersistentDefinitionNotFoundException if no such definition can be found.

Redefined in descendants as

Method Description
ezcPersistentMultiManager::fetchDefinition() Returns the definition of the persistent object with the class $class.
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.

setupReversePropertyDefinition

ezcPersistentObjectDefinition setupReversePropertyDefinition( ezcPersistentObjectDefinition $def )
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.

Parameters

Name Type Description
$def ezcPersistentObjectDefinition The target persistent object definition.

Last updated: Tue, 23 Mar 2010