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 | ( | $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 | ( | ) |
Return the current element.
- Returns
- Value of the current attribute
Definition at line 68 of file NodeValueIterator.php.
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 | ( | ) |
Move forward to next element.
Definition at line 84 of file NodeValueIterator.php.
rewind | ( | ) |
Rewind the Iterator to the first element.
Definition at line 111 of file NodeValueIterator.php.
valid | ( | ) |
Checks if current position is valid.
Definition at line 121 of file NodeValueIterator.php.
currentNode | ( | ) |
Member Data Documentation
|
protected |
Definition at line 45 of file NodeValueIterator.php.
|
protected |
Definition at line 46 of file NodeValueIterator.php.
|
protected |
Definition at line 47 of file NodeValueIterator.php.
|
protected |
Definition at line 48 of file NodeValueIterator.php.
|
protected |
Definition at line 49 of file NodeValueIterator.php.