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

Afficher le fichier Open project: neos/flow-development-collection Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

Commits the current persistence session
public commit ( ) : void
Résultat void

getObjectCountByQuery() public méthode

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

getObjectDataByIdentifier() public méthode

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
Résultat array

getObjectDataByQuery() public méthode

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

initialize() public méthode

Initializes the backend
public initialize ( array $options ) : void
$options array
Résultat void

isConnected() public méthode

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

setAggregateRootObjects() public méthode

Sets the aggregate root objects
public setAggregateRootObjects ( SplObjectStorage $objects ) : void
$objects SplObjectStorage
Résultat void

setChangedEntities() public méthode

Sets the changed objects
public setChangedEntities ( SplObjectStorage $entities ) : void
$entities SplObjectStorage
Résultat void

setDeletedEntities() public méthode

Sets the deleted entities
public setDeletedEntities ( SplObjectStorage $entities ) : void
$entities SplObjectStorage
Résultat void

setPersistenceManager() public méthode

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