Detailed Description
Default PersistenceFacade implementation.
Definition at line 31 of file DefaultPersistenceFacade.php.
Public Member Functions | |
__construct (EventManager $eventManager, OutputStrategy $logStrategy) | |
__destruct () | |
setMappers ($mappers) | |
getKnownTypes () | |
isKnownType ($type) | |
getFullyQualifiedType ($type) | |
getSimpleType ($type) | |
load (ObjectId $oid, $buildDepth=BuildDepth::SINGLE) | |
create ($type, $buildDepth=BuildDepth::SINGLE) | |
getLastCreatedOID ($type) | |
getOIDs ($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) | |
getFirstOID ($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) | |
loadObjects ($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) | |
loadFirstObject ($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) | |
getTransaction () | |
getMapper ($type) | |
setMapper ($type, PersistenceMapper $mapper) | |
stateChanged (StateChangeEvent $event) | |
Constructor & Destructor Documentation
__construct | ( | EventManager | $eventManager, |
OutputStrategy | $logStrategy | ||
) |
Constructor.
- Parameters
-
$eventManager $logStrategy OutputStrategy used for logging persistence actions.
Definition at line 45 of file DefaultPersistenceFacade.php.
__destruct | ( | ) |
Destructor.
Definition at line 57 of file DefaultPersistenceFacade.php.
Member Function Documentation
setMappers | ( | $mappers | ) |
Set the PersistentMapper instances.
- Parameters
-
$mappers Associative array with the fully qualified mapped class names as keys and the mapper instances as values
Definition at line 67 of file DefaultPersistenceFacade.php.
getKnownTypes | ( | ) |
Implements PersistenceFacade.
Definition at line 84 of file DefaultPersistenceFacade.php.
isKnownType | ( | $type | ) |
- See also
- PersistenceFacade::isKnownType()
Implements PersistenceFacade.
Definition at line 91 of file DefaultPersistenceFacade.php.
getFullyQualifiedType | ( | $type | ) |
Implements PersistenceFacade.
Definition at line 98 of file DefaultPersistenceFacade.php.
getSimpleType | ( | $type | ) |
Implements PersistenceFacade.
Definition at line 111 of file DefaultPersistenceFacade.php.
load | ( | ObjectId | $oid, |
$buildDepth = BuildDepth::SINGLE |
|||
) |
- See also
- PersistenceFacade::load()
Implements PersistenceFacade.
Definition at line 122 of file DefaultPersistenceFacade.php.
create | ( | $type, | |
$buildDepth = BuildDepth::SINGLE |
|||
) |
- See also
- PersistenceFacade::create()
Implements PersistenceFacade.
Definition at line 141 of file DefaultPersistenceFacade.php.
getLastCreatedOID | ( | $type | ) |
Implements PersistenceFacade.
Definition at line 161 of file DefaultPersistenceFacade.php.
getOIDs | ( | $type, | |
$criteria = null , |
|||
$orderby = null , |
|||
PagingInfo | $pagingInfo = null |
||
) |
- See also
- PersistenceFacade::getOIDs()
Implements PersistenceFacade.
Definition at line 172 of file DefaultPersistenceFacade.php.
getFirstOID | ( | $type, | |
$criteria = null , |
|||
$orderby = null , |
|||
PagingInfo | $pagingInfo = null |
||
) |
- See also
- PersistenceFacade::getFirstOID()
Implements PersistenceFacade.
Definition at line 184 of file DefaultPersistenceFacade.php.
loadObjects | ( | $type, | |
$buildDepth = BuildDepth::SINGLE , |
|||
$criteria = null , |
|||
$orderby = null , |
|||
PagingInfo | $pagingInfo = null |
||
) |
- See also
- PersistenceFacade::loadObjects()
Implements PersistenceFacade.
Definition at line 200 of file DefaultPersistenceFacade.php.
loadFirstObject | ( | $type, | |
$buildDepth = BuildDepth::SINGLE , |
|||
$criteria = null , |
|||
$orderby = null , |
|||
PagingInfo | $pagingInfo = null |
||
) |
Implements PersistenceFacade.
Definition at line 212 of file DefaultPersistenceFacade.php.
getTransaction | ( | ) |
Implements PersistenceFacade.
Definition at line 228 of file DefaultPersistenceFacade.php.
getMapper | ( | $type | ) |
- See also
- PersistenceFacade::getMapper()
Implements PersistenceFacade.
Definition at line 238 of file DefaultPersistenceFacade.php.
setMapper | ( | $type, | |
PersistenceMapper | $mapper | ||
) |
- See also
- PersistenceFacade::setMapper()
Implements PersistenceFacade.
Definition at line 251 of file DefaultPersistenceFacade.php.
stateChanged | ( | StateChangeEvent | $event | ) |
Listen to StateChangeEvents.
- Parameters
-
$event StateChangeEvent instance
Definition at line 284 of file DefaultPersistenceFacade.php.