Property | Type | Description | |
---|---|---|---|
$aggregateRootObjects | SplObjectStorage | ||
$changedEntities | SplObjectStorage | ||
$classSchemata | array | ||
$deletedEntities | SplObjectStorage | ||
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface | ||
$persistenceSession | |||
$reflectionService | |||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | ||
$validatorResolver | |||
$visitedDuringPersistence | SplObjectStorage |
Method | Description | |
---|---|---|
__construct ( ) | Constructs the backend | |
commit ( ) : void | Commits the current persistence session. | |
initialize ( array $options ) : void | Initializes the backend | |
injectPersistenceSession ( |
Injects the persistence session | |
injectReflectionService ( |
Injects a Reflection Service instance used for processing objects | |
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | Injects the system logger | |
injectValidatorResolver ( |
Injects the ValidatorResolver | |
isConnected ( ) : boolean | Returns TRUE, if an active connection to the persistence backend has been established, e.g. entities can be persisted. | |
setAggregateRootObjects ( SplObjectStorage $objects ) : void | Sets the aggregate root objects | |
setChangedEntities ( SplObjectStorage $entities ) : void | Sets the changed objects | |
setDeletedEntities ( SplObjectStorage $entities ) : void | Sets the deleted objects | |
setPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void | Set a PersistenceManager instance. |
Method | Description | |
---|---|---|
arrayContainsObject ( array $array, object $object, string $identifier ) : boolean | Checks whether the given object is contained in the array. This checks for object identity in terms of the persistence layer, i.e. the UUID, when comparing entities. | |
checkPropertyValue ( object $object, string $propertyName, array $propertyMetaData ) : mixed | Check the property value for allowed types and throw exceptions for unsupported types. | |
collectProperties ( string $identifier, object $object, array $properties, boolean &$dirty ) : array | ||
emitPersistedObject ( object $object, integer $objectState ) : void | Signalizes that the given object has been persisted | |
emitRemovedObject ( object $object ) : void | Signalizes that the given object has been removed | |
flattenValue ( string $identifier, object $object, string $propertyName, array $propertyMetaData, array &$propertyData ) : void | Convert a value to the internal object data format | |
getType ( mixed $value ) : string | Returns the type of $value, i.e. the class name or primitive type. | |
getTypeName ( string $type ) : string | Returns the type name as used in the database table names. | |
persistObject ( object $object, string $parentIdentifier ) : string | Stores or updates an object in the underlying storage. | |
persistObjects ( ) : void | First persist new objects, then check reconstituted entities. | |
processArray ( array $array = null, string $parentIdentifier, array $previousArray = null ) : array | Store an array as a set of records, with each array element becoming a property named like the key and the value. | |
processDateTime ( DateTimeInterface $dateTime = null ) : integer | Creates a unix timestamp from the given DateTime object. If NULL is given NULL will be returned. | |
processDeletedObjects ( ) : void | Iterate over deleted entities and process them | |
processNestedArray ( string $parentIdentifier, array $nestedArray, Closure $handler = null ) : string | "Serializes" a nested array for storage. | |
processObject ( object $object, string $parentIdentifier ) : array | ||
processSplObjectStorage ( SplObjectStorage $splObjectStorage = null, string $parentIdentifier, array $previousObjectStorage = null ) : array | Store an SplObjectStorage as a set of records. | |
removeDeletedArrayEntries ( array $array = null, array $previousArray ) : void | Remove objects removed from array compared to $previousArray. | |
removeDeletedReference ( object $object, string $propertyName, array $propertyMetaData ) : void | Remove any unreferenced non aggregate root entity | |
removeDeletedSplObjectStorageEntries ( SplObjectStorage $splObjectStorage = null, array $previousObjectStorage ) : void | Remove objects removed from SplObjectStorage compared to $previousSplObjectStorage. | |
removeEntity ( object $object ) : void | Remove an entity | |
removeValueObject ( object $object ) : void | Remove a value object | |
storeObject ( object $object, string $identifier, string $parentIdentifier, array &$objectData ) : integer | Actually store an object, backend-specific | |
validateObject ( object $object ) : void | Validates the given object and throws an exception if validation fails. |
protected collectProperties ( string $identifier, object $object, array $properties, boolean &$dirty ) : array | ||
$identifier | string | The object's identifier |
$object | object | The object to work on |
$properties | array | The properties to collect (as per class schema) |
$dirty | boolean | A dirty flag that is passed by reference and set to TRUE if a dirty property was found |
return | array |
protected emitRemovedObject ( object $object ) : void | ||
$object | object | The object that will be removed |
return | void |
protected flattenValue ( string $identifier, object $object, string $propertyName, array $propertyMetaData, array &$propertyData ) : void | ||
$identifier | string | The object's identifier |
$object | object | The object with the property to flatten |
$propertyName | string | The name of the property |
$propertyMetaData | array | The property metadata |
$propertyData | array | Reference to the property data array |
return | void |
protected getTypeName ( string $type ) : string | ||
$type | string | |
return | string |
public initialize ( array $options ) : void | ||
$options | array | |
return | void |
public injectPersistenceSession ( |
||
$persistenceSession | ||
return | void |
public injectReflectionService ( |
||
$reflectionService | ||
return | void |
public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void | ||
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | |
return | void |
public injectValidatorResolver ( |
||
$validatorResolver | ||
return | void |
public isConnected ( ) : boolean | ||
return | boolean | TRUE, if an connection has been established, FALSE if add object will not be persisted by the backend |
protected persistObjects ( ) : void | ||
return | void |
protected processDateTime ( DateTimeInterface $dateTime = null ) : integer | ||
$dateTime | DateTimeInterface | |
return | integer |
protected processDeletedObjects ( ) : void | ||
return | void |
protected processSplObjectStorage ( SplObjectStorage $splObjectStorage = null, string $parentIdentifier, array $previousObjectStorage = null ) : array | ||
$splObjectStorage | SplObjectStorage | The SplObjectStorage to persist |
$parentIdentifier | string | |
$previousObjectStorage | array | the previously persisted state of the SplObjectStorage |
return | array | An array with "flat" values representing the SplObjectStorage |
protected removeDeletedSplObjectStorageEntries ( SplObjectStorage $splObjectStorage = null, array $previousObjectStorage ) : void | ||
$splObjectStorage | SplObjectStorage | |
$previousObjectStorage | array | |
return | void |
abstract protected removeEntity ( object $object ) : void | ||
$object | object | |
return | void |
abstract protected removeValueObject ( object $object ) : void | ||
$object | object | |
return | void |
public setAggregateRootObjects ( SplObjectStorage $objects ) : void | ||
$objects | SplObjectStorage | |
return | void |
public setChangedEntities ( SplObjectStorage $entities ) : void | ||
$entities | SplObjectStorage | |
return | void |
public setDeletedEntities ( SplObjectStorage $entities ) : void | ||
$entities | SplObjectStorage | |
return | void |
public setPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void | ||
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface | |
return | void |
protected validateObject ( object $object ) : void | ||
$object | object | |
return | void |
protected SplObjectStorage $aggregateRootObjects | ||
return | SplObjectStorage |
protected SplObjectStorage $changedEntities | ||
return | SplObjectStorage |
protected SplObjectStorage $deletedEntities | ||
return | SplObjectStorage |
protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager | ||
return | Neos\Flow\Persistence\PersistenceManagerInterface |
protected Session,Neos\Flow\Persistence\Generic $persistenceSession | ||
return |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
return |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
return | Neos\Flow\Log\SystemLoggerInterface |
protected ValidatorResolver,Neos\Flow\Validation $validatorResolver | ||
return |