Property | Type | Description | |
---|---|---|---|
$hasUnpersistedChanges | boolean | ||
$newObjects | array | ||
$settings | array | ||
$whitelistedObjects | SplObjectStorage |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
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 an arrays containing the identity of the domain object. | |
hasUnpersistedChanges ( ) : boolean | Gives feedback if the persistence Manager has unpersisted changes. | |
injectSettings ( array $settings ) : void | Injects the Flow settings, the persistence part is kept for further use. | |
registerNewObject ( Aspect\PersistenceMagicInterface $object ) : void | Registers an object which has been created or cloned during this request. | |
whitelistObject ( object $object ) : void | Adds the given object to a whitelist of objects which may be persisted even if the current HTTP request is considered a "safe" request. |
Method | Description | |
---|---|---|
throwExceptionIfObjectIsNotWhitelisted ( object $object ) : void | Checks if the given object is whitelisted and if not, throws an exception |
public clearState ( ) : void | ||
return | void |
public convertObjectToIdentityArray ( object $object ) : array | ||
$object | object | The object to be converted |
return | array | The identity array in the format array('__identity' => '...') |
public convertObjectsToIdentityArrays ( array $array ) : array | ||
$array | array | The array to be iterated over |
return | array | The modified array without objects |
public hasUnpersistedChanges ( ) : boolean | ||
return | boolean |
public injectSettings ( array $settings ) : void | ||
$settings | array | |
return | void |
public registerNewObject ( Aspect\PersistenceMagicInterface $object ) : void | ||
$object | Aspect\PersistenceMagicInterface | The new object to register |
return | void |
protected throwExceptionIfObjectIsNotWhitelisted ( object $object ) : void | ||
$object | object | |
return | void |
public whitelistObject ( object $object ) : void | ||
$object | object | The object |
return | void |