TYPO3
7.6
|
Public Member Functions | |
injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService) | |
__construct () | |
registerReconstitutedEntity ($entity, array $entityData=array()) | |
replaceReconstitutedEntity ($oldEntity, $newEntity) | |
unregisterReconstitutedEntity ($entity) | |
getReconstitutedEntities () | |
isReconstitutedEntity ($entity) | |
hasObject ($object) | |
hasIdentifier ($identifier, $className) | |
getObjectByIdentifier ($identifier, $className) | |
getIdentifierByObject ($object) | |
registerObject ($object, $identifier) | |
unregisterObject ($object) | |
destroy () | |
Protected Attributes | |
$reconstitutedEntities | |
$reconstitutedEntitiesData = array() | |
$objectMap | |
$identifierMap = array() | |
$reflectionService | |
The persistence session - acts as a Unit of Work for Extbase persistence framework.
Definition at line 22 of file Session.php.
__construct | ( | ) |
Constructs a new Session
Definition at line 66 of file Session.php.
destroy | ( | ) |
Destroy the state of the persistence session and reset all internal data.
Definition at line 223 of file Session.php.
getIdentifierByObject | ( | $object | ) |
Returns the identifier for the given object from the session, if the object was registered.
object | $object |
Definition at line 184 of file Session.php.
References Session\hasObject().
Referenced by Session\unregisterReconstitutedEntity().
getObjectByIdentifier | ( | $identifier, | |
$className | |||
) |
Returns the object for the given identifier
string | $identifier | |
string | $className |
Definition at line 170 of file Session.php.
getReconstitutedEntities | ( | ) |
Returns all objects which have been registered as reconstituted
Definition at line 120 of file Session.php.
References Session\$reconstitutedEntities.
hasIdentifier | ( | $identifier, | |
$className | |||
) |
Checks whether the given identifier is known to the identity map
string | $identifier | |
string | $className |
Definition at line 157 of file Session.php.
hasObject | ( | $object | ) |
Checks whether the given object is known to the identity map
object | $object |
Definition at line 145 of file Session.php.
Referenced by Session\getIdentifierByObject().
injectReflectionService | ( | \TYPO3\CMS\Extbase\Reflection\ReflectionService | $reflectionService | ) |
\TYPO3\CMS\Extbase\Reflection\ReflectionService | $reflectionService |
Definition at line 58 of file Session.php.
References Session\$reflectionService.
isReconstitutedEntity | ( | $entity | ) |
Tells whether the given object is a reconstituted entity.
object | $entity |
Definition at line 131 of file Session.php.
registerObject | ( | $object, | |
$identifier | |||
) |
Register an identifier for an object
object | $object | |
string | $identifier |
Definition at line 199 of file Session.php.
registerReconstitutedEntity | ( | $entity, | |
array | $entityData = array() |
||
) |
Registers data for a reconstituted object.
$entityData format is described in "Documentation/PersistenceFramework object data format.txt"
object | $entity | |
array | $entityData |
Definition at line 82 of file Session.php.
replaceReconstitutedEntity | ( | $oldEntity, | |
$newEntity | |||
) |
Replace a reconstituted object, leaves the clean data unchanged.
object | $oldEntity | |
object | $newEntity |
Definition at line 95 of file Session.php.
unregisterObject | ( | $object | ) |
Unregister an object
object | $object |
Definition at line 211 of file Session.php.
unregisterReconstitutedEntity | ( | $entity | ) |
Unregisters data for a reconstituted object
object | $entity |
Definition at line 107 of file Session.php.
References Session\getIdentifierByObject().
|
protected |
Definition at line 48 of file Session.php.
|
protected |
Definition at line 43 of file Session.php.
|
protected |
Definition at line 29 of file Session.php.
Referenced by Session\getReconstitutedEntities().
|
protected |
Definition at line 38 of file Session.php.
|
protected |
Definition at line 53 of file Session.php.
Referenced by Session\injectReflectionService().