Class DibiResultIterator
External result set iterator.
This can be returned by DibiResult::getIterator() method or using foreach
- 4: }
Optionally you can specify offset and limit:
- 3: }
Implements interfaces:
| Constructor Summary | |
|---|---|
| public |
|
| Method Summary | |
|---|---|
| int |
count
()
Required by the Countable interface.
|
| mixed |
current
()
Returns the current element.
|
| mixed |
key
()
Returns the key of the current element.
|
| void |
next
()
Moves forward to next element.
|
| void |
rewind
()
Rewinds the iterator to the first element.
|
| bool |
valid
()
Checks if there is a current element after calls to rewind() or next().
|
| Constructor Details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 60 __constructpublic __construct (DibiResult $result, [int $offset =
|
||||||||||||
| Method Details | ||||||
|---|---|---|---|---|---|---|
|
line 132 countpublic int count () Required by the Countable interface. Implementation of:
Countable::count
|
||||||
|
line 97 currentpublic mixed current () Returns the current element. Implementation of:
Iterator::current
|
||||||
|
line 86 keypublic mixed key () Returns the key of the current element. Implementation of:
Iterator::key
|
||||||
|
line 108 nextpublic void next () Moves forward to next element. Implementation of:
Iterator::next
|
||||||
|
line 73 rewindpublic void rewind () Rewinds the iterator to the first element. Implementation of:
Iterator::rewind
|
||||||
|
line 121 validpublic bool valid () Checks if there is a current element after calls to rewind() or next(). Implementation of:
Iterator::valid
|
||||||