Class DibiResultIterator
External result set iterator.
This can be returned by DibiResult::getIterator() method or using foreach
- 4: }
Implements interfaces:
Iterator (internal interface), Countable (internal interface)
| Constructor Summary | |
|---|---|
| public |
__construct
(DibiResult $result)
|
| 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 45 __constructpublic __construct (DibiResult $result)
|
||||||
| Method Details | ||||||
|---|---|---|---|---|---|---|
|
line 114 countpublic int count () Required by the Countable interface. Implementation of:
Countable::count
|
||||||
|
line 80 currentpublic mixed current () Returns the current element. Implementation of:
Iterator::current
|
||||||
|
line 69 keypublic mixed key () Returns the key of the current element. Implementation of:
Iterator::key
|
||||||
|
line 91 nextpublic void next () Moves forward to next element. Implementation of:
Iterator::next
|
||||||
|
line 56 rewindpublic void rewind () Rewinds the iterator to the first element. Implementation of:
Iterator::rewind
|
||||||
|
line 103 validpublic bool valid () Checks if there is a current element after calls to rewind() or next(). Implementation of:
Iterator::valid
|
||||||