PHP 클래스 Neos\Flow\Persistence\Repository

상속: implements Neos\Flow\Persistence\RepositoryInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultOrderings array
$entityClassName string Warning: if you think you want to set this, look at RepositoryInterface::ENTITY_CLASSNAME first!
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface

공개 메소드들

메소드 설명
__call ( string $method, array $arguments ) : mixed Magic call method for repository methods.
__construct ( ) Initializes a new Repository.
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 ( string $identifier ) : object Finds an object matching the given identifier.
getEntityClassName ( ) : string Returns the classname of the entities 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 ) Schedules a modified object for persistence.

메소드 상세

__call() 공개 메소드

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
리턴 mixed The result of the repository method

__construct() 공개 메소드

Initializes a new Repository.
public __construct ( )

add() 공개 메소드

Adds an object to this repository.
public add ( object $object ) : void
$object object The object to add
리턴 void

countAll() 공개 메소드

Counts all objects of this repository
public countAll ( ) : integer
리턴 integer

createQuery() 공개 메소드

Returns a query for objects of this repository
public createQuery ( ) : Neos\Flow\Persistence\QueryInterface
리턴 Neos\Flow\Persistence\QueryInterface

findAll() 공개 메소드

Returns all objects of this repository
또한 보기: QueryInterface::execute()
public findAll ( ) : Neos\Flow\Persistence\QueryResultInterface
리턴 Neos\Flow\Persistence\QueryResultInterface The query result

findByIdentifier() 공개 메소드

Finds an object matching the given identifier.
public findByIdentifier ( string $identifier ) : object
$identifier string The identifier of the object to find
리턴 object The matching object if found, otherwise NULL

getEntityClassName() 공개 메소드

Note that anything that is an "instanceof" this class is accepted by the repository.
public getEntityClassName ( ) : string
리턴 string

remove() 공개 메소드

Removes an object from this repository.
public remove ( object $object ) : void
$object object The object to remove
리턴 void

removeAll() 공개 메소드

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

setDefaultOrderings() 공개 메소드

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
리턴 void

update() 공개 메소드

Schedules a modified object for persistence.
public update ( object $object )
$object object The modified object

프로퍼티 상세

$defaultOrderings 보호되어 있는 프로퍼티

protected array $defaultOrderings
리턴 array

$entityClassName 보호되어 있는 프로퍼티

Warning: if you think you want to set this, look at RepositoryInterface::ENTITY_CLASSNAME first!
protected string $entityClassName
리턴 string

$persistenceManager 보호되어 있는 프로퍼티

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface