Detailed Description
NodeValueIterator is used to iterate over all persistent values of a Node (not including relations).
The following example shows the usage:
Definition at line 43 of file NodeValueIterator.php.
Public Member Functions | |
__construct ($node, $recursive) | |
current () | |
key () | |
next () | |
rewind () | |
valid () | |
currentNode () | |
Protected Attributes | |
$end | |
$recursive | |
$nodeIterator | |
$currentAttributes | |
$currentAttribute | |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | $node, | |
$recursive | |||
) |
Constructor.
- Parameters
-
$node The node to start from. $recursive Boolean whether the iterator should also process child nodes
Definition at line 56 of file NodeValueIterator.php.
Member Function Documentation
◆ current()
current | ( | ) |
Return the current element.
- Returns
- Value of the current attribute
Definition at line 68 of file NodeValueIterator.php.
◆ key()
key | ( | ) |
Return the key of the current element.
- Returns
- String, the name of the current attribute
Definition at line 77 of file NodeValueIterator.php.
◆ next()
next | ( | ) |
Move forward to next element.
Definition at line 84 of file NodeValueIterator.php.
◆ rewind()
rewind | ( | ) |
Rewind the Iterator to the first element.
Definition at line 111 of file NodeValueIterator.php.
◆ valid()
valid | ( | ) |
Checks if current position is valid.
Definition at line 121 of file NodeValueIterator.php.
◆ currentNode()
currentNode | ( | ) |
Member Data Documentation
◆ $end
|
protected |
Definition at line 45 of file NodeValueIterator.php.
◆ $recursive
|
protected |
Definition at line 46 of file NodeValueIterator.php.
◆ $nodeIterator
|
protected |
Definition at line 47 of file NodeValueIterator.php.
◆ $currentAttributes
|
protected |
Definition at line 48 of file NodeValueIterator.php.
◆ $currentAttribute
|
protected |
Definition at line 49 of file NodeValueIterator.php.