메소드 |
설명 |
|
add ( object $object ) : void |
Adds an object to the persistence. |
|
clearState ( ) : void |
Clears the in-memory state of the persistence. |
|
convertObjectToIdentityArray ( object $object ) : array |
Converts the given object into an array containing the identity of the domain object. |
|
convertObjectsToIdentityArrays ( array $array ) : array |
Recursively iterates through the given array and turns objects
into arrays containing the identity of the domain object. |
|
createQueryForType ( string $type ) : Neos\Flow\Persistence\QueryInterface |
Return a query object for the given type. |
|
getIdentifierByObject ( object $object ) : mixed |
Returns the (internal) identifier for the object, if it is known to the
backend. Otherwise NULL is returned. |
|
getObjectByIdentifier ( mixed $identifier, string $objectType = null, boolean $useLazyLoading = false ) : object |
Returns the object with the (internal) identifier, if it is known to the
backend. Otherwise NULL is returned. |
|
hasUnpersistedChanges ( ) : boolean |
Gives feedback if the persistence Manager has unpersisted changes. |
|
injectSettings ( array $settings ) : void |
Injects the Flow settings, called by Flow. |
|
isConnected ( ) : boolean |
Returns TRUE, if an active connection to the persistence
backend has been established, e.g. entities can be persisted. |
|
isNewObject ( object $object ) : boolean |
Checks if the given object has ever been persisted. |
|
persistAll ( boolean $onlyWhitelistedObjects = false ) : void |
Commits new objects and changes to objects in the current persistence session into the backend. |
|
registerNewObject ( Aspect\PersistenceMagicInterface $object ) : void |
Registers an object which has been created or cloned during this request. |
|
remove ( object $object ) : void |
Removes an object to the persistence. |
|
update ( object $object ) : void |
Update an object in the persistence. |
|
whitelistObject ( object $object ) : void |
Adds the given object to a whitelist of objects which may be persisted when persistAll() is called with the
$onlyWhitelistedObjects flag. This is the case if "safe" HTTP request methods are used. |
|