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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$numberOfRows integer
$query Query
$rows array

공개 메소드들

메소드 설명
__construct ( Query $query )
count ( ) : integer Returns the number of objects in the result
current ( ) : mixed
getFirst ( ) : object Returns the first object in the result set
getQuery ( ) : Query Returns a clone of the query object
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() 공개 메소드

public __construct ( Query $query )
$query Query

count() 공개 메소드

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

current() 공개 메소드

public current ( ) : mixed
리턴 mixed

getFirst() 공개 메소드

Returns the first object in the result set
public getFirst ( ) : object
리턴 object

getQuery() 공개 메소드

Returns a clone of the query object
public getQuery ( ) : Query
리턴 Query

initialize() 보호된 메소드

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

key() 공개 메소드

public key ( ) : mixed
리턴 mixed

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
public offsetExists ( mixed $offset ) : boolean
$offset mixed
리턴 boolean

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
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
public offsetUnset ( mixed $offset ) : void
$offset mixed
리턴 void

rewind() 공개 메소드

public rewind ( ) : void
리턴 void

toArray() 공개 메소드

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

valid() 공개 메소드

public valid ( ) : boolean
리턴 boolean

프로퍼티 상세

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

protected int $numberOfRows
리턴 integer

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

protected Query,Neos\Flow\Persistence\Doctrine $query
리턴 Query

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

protected array $rows
리턴 array