|
XRL
latest
Simple XML-RPC Library (both client and server)
|
Interface for external iterators or objects that can be iterated themselves internally. More...
Inheritance diagram for Iterator:Public Member Functions | |
| current () | |
| key () | |
| next () | |
| rewind () | |
| valid () | |
Interface for external iterators or objects that can be iterated themselves internally.
Definition at line 11 of file Iterator.php.
| Iterator::current | ( | ) |
Returns the current element.
| mixed | Current element. |
Implemented in fpoirotte\XRL\Types\AbstractCollection.
| Iterator::key | ( | ) |
Returns the key of the current element.
| scalar | Returns scalar on success, or null on failure. |
E_NOTICE on failure.Implemented in fpoirotte\XRL\Types\ArrayType, and fpoirotte\XRL\Types\Struct.
Referenced by fpoirotte\XRL\Types\AbstractCollection\current().
| Iterator::next | ( | ) |
Moves the current position to the next element.
Implemented in fpoirotte\XRL\Types\AbstractCollection.
| Iterator::rewind | ( | ) |
Rewinds back to the first element of the Iterator.
Implemented in fpoirotte\XRL\Types\AbstractCollection.
| Iterator::valid | ( | ) |
Checks if current position is valid.
This method is called after Iterator::rewind() and Iterator::next() to check if the current position is valid.
| bool | true if the current position is valid, false otherwise. |
false, the foreach loop will be terminated.Implemented in fpoirotte\XRL\Types\AbstractCollection.