| 1 | <?php |
||
| 3 | class Xhgui_Storage_ResultSet implements \Iterator { |
||
| 4 | |||
| 5 | protected $data = []; |
||
| 6 | protected $keys = []; |
||
| 7 | |||
| 8 | protected $i = 0; |
||
| 9 | protected $limit = 25; |
||
| 10 | protected $totalRows = 0; |
||
| 11 | public function __construct($data = null, $totalRows = 0) { |
||
| 16 | |||
| 17 | public function toArray(){ |
||
| 20 | |||
| 21 | public function count(){ |
||
| 24 | |||
| 25 | public function sort(){ |
||
| 28 | |||
| 29 | public function skip($count){ |
||
| 33 | |||
| 34 | public function limit($limit){ |
||
| 38 | |||
| 39 | public function get($i) { |
||
| 42 | /** |
||
| 43 | * Return the current element |
||
| 44 | */ |
||
| 45 | public function current() { |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Move forward to next element |
||
| 51 | */ |
||
| 52 | public function next() { |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Return the key of the current element |
||
| 58 | */ |
||
| 59 | public function key() { |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Checks if current position is valid |
||
| 65 | * |
||
| 66 | * Returns true on success or false on failure. |
||
| 67 | */ |
||
| 68 | public function valid() { |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Rewind the Iterator to the first element |
||
| 74 | */ |
||
| 75 | public function rewind() { |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return int |
||
| 81 | */ |
||
| 82 | public function getTotalRows() { |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @param int $totalRows |
||
| 88 | */ |
||
| 89 | public function setTotalRows($totalRows) { |
||
| 92 | } |
||
| 93 |