PHP Interface Neos\Flow\Persistence\RepositoryInterface

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

Méthodes publiques

Méthode Description
__call ( string $method, array $arguments ) : mixed Magic call method for repository methods.
add ( object $object ) : void Adds an object to this repository.
countAll ( ) : integer Counts all objects of this repository
createQuery ( ) : Neos\Flow\Persistence\QueryInterface Returns a query for objects of this repository
findAll ( ) : Neos\Flow\Persistence\QueryResultInterface Returns all objects of this repository.
findByIdentifier ( mixed $identifier ) : object Finds an object matching the given identifier.
getEntityClassName ( ) : string Returns the object type this repository is managing.
remove ( object $object ) : void Removes an object from this repository.
removeAll ( ) : void Removes all objects of this repository as if remove() was called for all of them.
setDefaultOrderings ( array $defaultOrderings ) : void Sets the property names to order results by. Expected like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )
update ( object $object ) : void Schedules a modified object for persistence.

Method Details

__call() public méthode

Provides three methods - findBy($value, $caseSensitive = TRUE, $cacheResult = FALSE) - findOneBy($value, $caseSensitive = TRUE, $cacheResult = FALSE) - countBy($value, $caseSensitive = TRUE)
public __call ( string $method, array $arguments ) : mixed
$method string Name of the method
$arguments array The arguments
Résultat mixed The result of the repository method

add() public méthode

Adds an object to this repository.
public add ( object $object ) : void
$object object The object to add
Résultat void

countAll() public méthode

Counts all objects of this repository
public countAll ( ) : integer
Résultat integer

createQuery() public méthode

Returns a query for objects of this repository
public createQuery ( ) : Neos\Flow\Persistence\QueryInterface
Résultat Neos\Flow\Persistence\QueryInterface

findAll() public méthode

Returns all objects of this repository.
public findAll ( ) : Neos\Flow\Persistence\QueryResultInterface
Résultat Neos\Flow\Persistence\QueryResultInterface The query result

findByIdentifier() public méthode

Finds an object matching the given identifier.
public findByIdentifier ( mixed $identifier ) : object
$identifier mixed The identifier of the object to find
Résultat object The matching object if found, otherwise NULL

getEntityClassName() public méthode

Returns the object type this repository is managing.
public getEntityClassName ( ) : string
Résultat string

remove() public méthode

Removes an object from this repository.
public remove ( object $object ) : void
$object object The object to remove
Résultat void

removeAll() public méthode

Removes all objects of this repository as if remove() was called for all of them.
public removeAll ( ) : void
Résultat void

setDefaultOrderings() public méthode

Sets the property names to order results by. Expected like this: array( 'foo' => \Neos\Flow\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \Neos\Flow\Persistence\QueryInterface::ORDER_DESCENDING )
public setDefaultOrderings ( array $defaultOrderings ) : void
$defaultOrderings array The property names to order by by default
Résultat void

update() public méthode

Schedules a modified object for persistence.
public update ( object $object ) : void
$object object The modified object
Résultat void