PHP 클래스 Neos\Flow\Persistence\Generic\QueryResult

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

보호된 프로퍼티들

프로퍼티 타입 설명
$dataMapper DataMapper
$numberOfResults array
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$query Neos\Flow\Persistence\QueryInterface
$queryResult array

공개 메소드들

메소드 설명
__construct ( Neos\Flow\Persistence\QueryInterface $query ) Constructor
count ( ) : integer Returns the number of objects in the result
current ( ) : mixed
getFirst ( ) : mixed Returns the first object in the result set, if any.
getQuery ( ) : Neos\Flow\Persistence\QueryInterface Returns a clone of the query object
injectDataMapper ( DataMapper $dataMapper ) : void Injects the DataMapper to map records to objects
injectPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void Injects the persistence manager
key ( ) : mixed
next ( ) : void
offsetExists ( mixed $offset ) : boolean This method is needed to implement the \ArrayAccess interface, but it isn't very useful as the offset has to be an integer
offsetGet ( mixed $offset ) : mixed
offsetSet ( mixed $offset, mixed $value ) : void This method has no effect on the persisted objects but only on the result set
offsetUnset ( mixed $offset ) : void This method has no effect on the persisted objects but only on the result set
rewind ( ) : void
toArray ( ) : array Returns an array with the objects in the result set
valid ( ) : boolean

보호된 메소드들

메소드 설명
initialize ( ) : void Loads the objects this QueryResult is supposed to hold

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Neos\Flow\Persistence\QueryInterface $query )
$query Neos\Flow\Persistence\QueryInterface

count() 공개 메소드

Returns the number of objects in the result
public count ( ) : integer
리턴 integer The number of matching objects

current() 공개 메소드

또한 보기: Iterator::current()
public current ( ) : mixed
리턴 mixed

getFirst() 공개 메소드

Returns the first object in the result set, if any.
public getFirst ( ) : mixed
리턴 mixed The first object of the result set or NULL if the result set was empty

getQuery() 공개 메소드

Returns a clone of the query object
public getQuery ( ) : Neos\Flow\Persistence\QueryInterface
리턴 Neos\Flow\Persistence\QueryInterface

initialize() 보호된 메소드

Loads the objects this QueryResult is supposed to hold
protected initialize ( ) : void
리턴 void

injectDataMapper() 공개 메소드

Injects the DataMapper to map records to objects
public injectDataMapper ( DataMapper $dataMapper ) : void
$dataMapper DataMapper
리턴 void

injectPersistenceManager() 공개 메소드

Injects the persistence manager
public injectPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
리턴 void

key() 공개 메소드

또한 보기: Iterator::key()
public key ( ) : mixed
리턴 mixed

next() 공개 메소드

또한 보기: Iterator::next()
public next ( ) : void
리턴 void

offsetExists() 공개 메소드

This method is needed to implement the \ArrayAccess interface, but it isn't very useful as the offset has to be an integer
또한 보기: ArrayAccess::offsetExists()
public offsetExists ( mixed $offset ) : boolean
$offset mixed
리턴 boolean

offsetGet() 공개 메소드

또한 보기: ArrayAccess::offsetGet()
public offsetGet ( mixed $offset ) : mixed
$offset mixed
리턴 mixed

offsetSet() 공개 메소드

This method has no effect on the persisted objects but only on the result set
또한 보기: ArrayAccess::offsetSet()
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed
$value mixed
리턴 void

offsetUnset() 공개 메소드

This method has no effect on the persisted objects but only on the result set
또한 보기: ArrayAccess::offsetUnset()
public offsetUnset ( mixed $offset ) : void
$offset mixed
리턴 void

rewind() 공개 메소드

또한 보기: Iterator::rewind()
public rewind ( ) : void
리턴 void

toArray() 공개 메소드

Returns an array with the objects in the result set
public toArray ( ) : array
리턴 array

valid() 공개 메소드

또한 보기: Iterator::valid()
public valid ( ) : boolean
리턴 boolean

프로퍼티 상세

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

protected DataMapper,Neos\Flow\Persistence\Generic $dataMapper
리턴 DataMapper

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

protected array $numberOfResults
리턴 array

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

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

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

protected QueryInterface,Neos\Flow\Persistence $query
리턴 Neos\Flow\Persistence\QueryInterface

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

protected array $queryResult
리턴 array