Source for file DibiResultIterator.php
Documentation is available at DibiResultIterator.php
- 1: <?php
- 3: /**
- 4: * dibi - tiny'n'smart database abstraction layer
- 5: * ----------------------------------------------
- 6: *
- 11: */
- 15: /**
- 16: * External result set iterator.
- 17: *
- 18: * This can be returned by DibiResult::getIterator() method or using foreach
- 19: * <code>
- 20: * $result = dibi::query('SELECT * FROM table');
- 21: * foreach ($result as $row) {
- 22: * print_r($row);
- 23: * }
- 24: * unset($result);
- 25: * </code>
- 26: *
- 29: */
- 31: {
- 42: /**
- 44: */
- 46: {
- 48: }
- 52: /**
- 53: * Rewinds the iterator to the first element.
- 55: */
- 57: {
- 61: }
- 65: /**
- 66: * Returns the key of the current element.
- 68: */
- 70: {
- 72: }
- 76: /**
- 77: * Returns the current element.
- 79: */
- 81: {
- 83: }
- 87: /**
- 88: * Moves forward to next element.
- 90: */
- 92: {
- 95: }
- 99: /**
- 100: * Checks if there is a current element after calls to rewind() or next().
- 102: */
- 104: {
- 106: }
- 110: /**
- 111: * Required by the Countable interface.
- 113: */
- 115: {
- 117: }
- 119: }