Path

ez components / documentation / api reference / 1.0.1 / persistentobject


eZ Components 1.0.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
ezcPersistentCodeManager Handles persistent object definitions in plain code style.

Method Summary

public abstract ezcPersistentDefinition 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

ezcPersistentDefinition 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
ezcPersistentCodeManager::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 ezcPersistentObjectDefinintion The target persistent object definition.

Last updated: Fri, 02 Nov 2007