PHP Interface Neos\Flow\Persistence\Generic\Backend\BackendInterface

Mostra file Open project: neos/flow-development-collection Interface Usage Examples

Public Methods

Method Description
commit ( ) : void Commits the current persistence session
getObjectCountByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : integer Returns the number of items matching the query.
getObjectDataByIdentifier ( string $identifier, string $objectType = null ) : array Returns the object data for the given identifier.
getObjectDataByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : array Returns the object data matching the $query.
initialize ( array $options ) : void Initializes the backend
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 entities
setPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void Set a PersistenceManager instance.

Method Details

commit() public method

Commits the current persistence session
public commit ( ) : void
return void

getObjectCountByQuery() public method

Returns the number of items matching the query.
public getObjectCountByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : integer
$query Neos\Flow\Persistence\QueryInterface
return integer

getObjectDataByIdentifier() public method

Returns the object data for the given identifier.
public getObjectDataByIdentifier ( string $identifier, string $objectType = null ) : array
$identifier string The UUID or Hash of the object
$objectType string
return array

getObjectDataByQuery() public method

Returns the object data matching the $query.
public getObjectDataByQuery ( Neos\Flow\Persistence\QueryInterface $query ) : array
$query Neos\Flow\Persistence\QueryInterface
return array

initialize() public method

Initializes the backend
public initialize ( array $options ) : void
$options array
return void

isConnected() public method

Returns TRUE, if an active connection to the persistence backend has been established, e.g. entities can be persisted.
public isConnected ( ) : boolean
return boolean TRUE, if an connection has been established, FALSE if add object will not be persisted by the backend

setAggregateRootObjects() public method

Sets the aggregate root objects
public setAggregateRootObjects ( SplObjectStorage $objects ) : void
$objects SplObjectStorage
return void

setChangedEntities() public method

Sets the changed objects
public setChangedEntities ( SplObjectStorage $entities ) : void
$entities SplObjectStorage
return void

setDeletedEntities() public method

Sets the deleted entities
public setDeletedEntities ( SplObjectStorage $entities ) : void
$entities SplObjectStorage
return void

setPersistenceManager() public method

Set a PersistenceManager instance.
public setPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
return void