PHP Класс Neos\Flow\Persistence\Doctrine\QueryResult

Наследование: implements Neos\Flow\Persistence\QueryResultInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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