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
파일 보기 프로젝트 열기: jackalope/jackalope 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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