PersistenceMapper.php
84 * @param $tags An array of tags that the attribute should match. Empty array means all attributes independent of the given matchMode (default: empty array)
85 * @param $matchMode One of 'all', 'none', 'any', defines how the attribute's tags should match the given tags (default: 'all')
168 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
179 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
211 public function loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null,
218 * @param $objects Array of PersistentObject or PersstentObjectProxy instances for which the related objects are loaded
220 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
222 * @param $criteria An array of Criteria instances that define conditions on the object's attributes (optional, default: _null_)
223 * @param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (optional, default: _null_)
225 * @return Associative array with the object ids of the origin objects as keys and arrays of related
228 public function loadRelation(array $objects, $role, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null,
loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
getRelations($hierarchyType='all')
Get the relations for this type.
A PersistenceOperation instance holds data necessary to accomplish an operation on the persistent sto...
Definition: PersistenceOperation.php:21
getRelation($roleName)
Get the definition for a relation.
rollbackTransaction()
Rollback the transaction on the transactional resource (e.g.
hasRelation($roleName)
Check if a named relation is defined.
getType()
Get the entity type that this mapper handles.
getTypeDisplayName(Message $message)
Get the display name of the type.
hasAttribute($name)
Check if a named attribute is defined.
getOIDs($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
getPkNames()
Get the names of the primary key values.
getDefaultOrder($roleName=null)
Get the names of the type and attributes to order by default and the sort directions (ASC or DESC).
PersistenceMapper defines the interface for all mapper classes.
Definition: PersistenceMapper.php:26
getRelationsByType($type)
Get the definitions for relations to a given type.
getProperties()
Get meta information on the mapped class.
executeOperation(PersistenceOperation $operation)
Execute a PersistenceOperation.
getTypeDescription(Message $message)
Get the description of the type.
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
commitTransaction()
Commit the transaction on the transactional resource (e.g.
BuildDepth values are used to define the depth when loading object trees.
Definition: BuildDepth.php:19
beginTransaction()
Start a transaction on the transactional resource (e.g.
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
getReferences()
Get the references to other entities.
getAttributes(array $tags=[], $matchMode='all')
PersistentObject values may be tagged with application specific tags.
getAttributeDescription($name, Message $message)
Get the description of the attribute.
getAttribute($name)
Get the definition for an attribute.
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
getStatements()
Get a list of all insert/update/delete statements that where executed in the last transaction.
save(PersistentObject $object)
Save a PersistentObject instance.
loadRelation(array $objects, $role, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Load the objects for the specified role.
load(ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
Load a PersistentObject instance from the storage.
create($type, $buildDepth=BuildDepth::SINGLE)
Construct a PersistentObject instance of a given type.
getAttributeDisplayName($name, Message $message)
Get the display name of the type.
getSortkey($roleName=null)
Get the persistent attribute that is used to store the order of the type as explicitly defined by the...
Message is used to get localized messages to be used in the user interface.
Definition: Message.php:23
isSortable($roleName=null)
Check if this type may be explicitly sorted by the user using a persistent attribute which stores the...