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.
파일 보기
프로젝트 열기: jackalope/jackalope
1 사용 예제들
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__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 |
|
메소드 상세
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 |
public getNode ( $selectorName = null ) |
public getPath ( $selectorName = null ) |
public getScore ( $selectorName = null ) |
프로퍼티 상세
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 |
|
protected FactoryInterface,Jackalope $factory |
리턴 |
Jackalope\FactoryInterface |
|
$objectManager 보호되어 있는 프로퍼티
protected ObjectManager,Jackalope $objectManager |
리턴 |
Jackalope\ObjectManager |
|
The path to the node for each selector
Which column we are on when iterating over the columns
The score this row has for each selector
Cached list of values extracted from columns to avoid double work.
protected array $values |
리턴 |
array |
|