Public Member Functions | |
HashIterator (&$hash) | |
__construct (&$hash) | |
reset () | |
isValid () | |
& | next () |
key () | |
index () | |
& | value () |
remove () | |
Public Attributes | |
$_src | |
$_values | |
$_keys | |
$_key | |
$_value | |
$_i = -1 | |
$_end = false |
This kind of iterators are used to walk throug Hash objects.
Definition at line 309 of file OHash.php.
|
Iterator constructor.
|
|
Iterator php4.4 compliant constructor.
Definition at line 337 of file OHash.php. References reset(). |
|
Return current index (position in iteration).
|
|
Test is end of iterator is not reached. |
|
Return current iterator key.
|
|
Return next Hash item. This method also set _key and _value.
|
|
Remove current iterated item from source. |
|
Reset iterator to first element. Definition at line 359 of file OHash.php. Referenced by __construct(). |
|
Return current iterator value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|