PersistenceMapper.php
104 * @param $tags An array of tags that the attribute should match. Empty array means all attributes independent of the given matchMode (default: empty array)
105 * @param $matchMode One of 'all', 'none', 'any', defines how the attribute's tags should match the given tags (default: 'all')
182 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
193 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
225 public function loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null,
232 * @param $objects Array of PersistenceObject or PersstenceObjectProxy instances for which the related objects are loaded
234 * @param $buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build
236 * @param $criteria An array of Criteria instances that define conditions on the object's attributes (optional, default: _null_)
237 * @param $orderby An array holding names of attributes to order by, maybe appended with 'ASC', 'DESC' (optional, default: _null_)
239 * @return Associative array with the object ids of the origin objects as keys and arrays of related
242 public function loadRelation(array $objects, $role, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null,
isSortable($roleName=null)
Check if this type may be explicitly sorted by the user using a persistent attribute which stores the...
getProperties()
Get meta information on the mapped class.
getRelationsByType($type)
Get the definitions for relations to a given type.
getQuoteIdentifierSymbol()
Get the symbol used to quote identifiers.
loadRelation(array $objects, $role, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Load the objects for the specified role.
getRelations($hierarchyType='all')
Get the relations for this type.
executeOperation(PersistenceOperation $operation)
Execute a PersistenceOperation.
load(ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
Load a PersistentObject instance from the storage.
getAttributeDescription($name, Message $message)
Get the description of the attribute.
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:27
PersistenceMapper defines the interface for all mapper classes.
Definition: PersistenceMapper.php:26
commitTransaction()
Commit the transaction on the transactional resource (e.g.
create($type, $buildDepth=BuildDepth::SINGLE)
Construct a PersistentObject instance of a given type.
getAttributeDisplayName($name, Message $message)
Get the display name of the type.
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
getSortkey($roleName=null)
Get the persistent attribute that is used to store the order of the type as explicitly defined by the...
getDefaultOrder($roleName=null)
Get the names of the type and attributes to order by default and the sort directions (ASC or DESC)...
Message is used to get localized messages to be used in the user interface.
Definition: Message.php:23
getRelation($roleName)
Get the definition for a relation.
getType()
Get the entity type that this mapper handles.
rollbackTransaction()
Rollback the transaction on the transactional resource (e.g.
save(PersistentObject $object)
Save a PersistentObject instance.
getAttributes(array $tags=array(), $matchMode='all')
PersistentObject values may be tagged with application specific tags.
getTypeDisplayName(Message $message)
Get the display name of the type.
getTypeDescription(Message $message)
Get the description of the type.
A PersistenceOperation instance holds data necessary to accomplish an operation on the persistent sto...
Definition: PersistenceOperation.php:21
loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
getOIDs($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
quoteIdentifier($identifier)
Add quotation to a given identifier (like column name).
getAttribute($name)
Get the definition for an attribute.
hasRelation($roleName)
Check if a named relation is defined.
hasAttribute($name)
Check if a named attribute is defined.
getPkNames()
Get the names of the primary key values.
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:24
beginTransaction()
Start a transaction on the transactional resource (e.g.