PHP Класс Jackalope\Query\Row

The \Traversable interface enables the implementation to be addressed with foreach. Rows have to implement either \RecursiveIterator or \Iterator. The iterator is similar to getValues() with keys being the column names and the values the corresponding entry in that column for this row.
Наследование: implements Iterator, implements PHPCR\Query\RowInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$columns array Columns of this result row: array of array with fields dcr:name and dcr:value
$defaultSelectorName string The default selector name
$factory Jackalope\FactoryInterface
$objectManager Jackalope\ObjectManager
$path The path to the node for each selector
$position integer Which column we are on when iterating over the columns
$score The score this row has for each selector
$values array Cached list of values extracted from columns to avoid double work.

Открытые методы

Метод Описание
__construct ( Jackalope\FactoryInterface $factory, ObjectManager $objectManager, array $columns ) Create new Row instance.
current ( ) Implement Iterator
getNode ( $selectorName = null ) {@inheritDoc}
getPath ( $selectorName = null ) {@inheritDoc}
getScore ( $selectorName = null ) {@inheritDoc}
getValue ( $columnName ) {@inheritDoc}
getValues ( ) {@inheritDoc}
key ( ) Implement Iterator
next ( ) Implement Iterator
rewind ( ) Implement Iterator
valid ( ) : boolean Implement Iterator

Описание методов

__construct() публичный метод

Create new Row instance.
public __construct ( Jackalope\FactoryInterface $factory, ObjectManager $objectManager, array $columns )
$factory Jackalope\FactoryInterface the object factory
$objectManager Jackalope\ObjectManager
$columns array array of array with fields dcr:name and dcr:value

current() публичный метод

Implement Iterator
public current ( )

getNode() публичный метод

{@inheritDoc}
public getNode ( $selectorName = null )

getPath() публичный метод

{@inheritDoc}
public getPath ( $selectorName = null )

getScore() публичный метод

{@inheritDoc}
public getScore ( $selectorName = null )

getValue() публичный метод

{@inheritDoc}
public getValue ( $columnName )

getValues() публичный метод

{@inheritDoc}
public getValues ( )

key() публичный метод

Implement Iterator
public key ( )

next() публичный метод

Implement Iterator
public next ( )

rewind() публичный метод

Implement Iterator
public rewind ( )

valid() публичный метод

Implement Iterator
public valid ( ) : boolean
Результат boolean whether the current position is valid

Описание свойств

$columns защищенное свойство

Columns of this result row: array of array with fields dcr:name and dcr:value
protected array $columns
Результат array

$defaultSelectorName защищенное свойство

The default selector name
protected string $defaultSelectorName
Результат string

$factory защищенное свойство

protected FactoryInterface,Jackalope $factory
Результат Jackalope\FactoryInterface

$objectManager защищенное свойство

protected ObjectManager,Jackalope $objectManager
Результат Jackalope\ObjectManager

$path защищенное свойство

The path to the node for each selector
protected $path

$position защищенное свойство

Which column we are on when iterating over the columns
protected int $position
Результат integer

$score защищенное свойство

The score this row has for each selector
protected $score

$values защищенное свойство

Cached list of values extracted from columns to avoid double work.
См. также: Row::getValues()
protected array $values
Результат array