PHP Class Neos\Flow\Persistence\Doctrine\QueryResult

Inheritance: implements Neos\Flow\Persistence\QueryResultInterface
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$numberOfRows integer
$query Query
$rows array

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
initialize ( ) : void Loads the objects this QueryResult is supposed to hold

Method Details

__construct() public méthode

public __construct ( Query $query )
$query Query

count() public méthode

Returns the number of objects in the result
public count ( ) : integer
Résultat integer The number of matching objects

current() public méthode

public current ( ) : mixed
Résultat mixed

getFirst() public méthode

Returns the first object in the result set
public getFirst ( ) : object
Résultat object

getQuery() public méthode

Returns a clone of the query object
public getQuery ( ) : Query
Résultat Query

initialize() protected méthode

Loads the objects this QueryResult is supposed to hold
protected initialize ( ) : void
Résultat void

key() public méthode

public key ( ) : mixed
Résultat mixed

next() public méthode

public next ( ) : void
Résultat void

offsetExists() public méthode

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
Résultat boolean

offsetGet() public méthode

public offsetGet ( mixed $offset ) : mixed
$offset mixed
Résultat mixed

offsetSet() public méthode

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
Résultat void

offsetUnset() public méthode

This method has no effect on the persisted objects but only on the result set
public offsetUnset ( mixed $offset ) : void
$offset mixed
Résultat void

rewind() public méthode

public rewind ( ) : void
Résultat void

toArray() public méthode

Returns an array with the objects in the result set
public toArray ( ) : array
Résultat array

valid() public méthode

public valid ( ) : boolean
Résultat boolean

Property Details

$numberOfRows protected_oe property

protected int $numberOfRows
Résultat integer

$query protected_oe property

protected Query,Neos\Flow\Persistence\Doctrine $query
Résultat Query

$rows protected_oe property

protected array $rows
Résultat array