/** * Initialise the current iteration pointer */ protected function initCurrent() { $row = $this->res->current(); if ($row) { $this->current = $this->newItem($row); } else { $this->current = false; } }
function rewind() { $this->res->rewind(); $this->key = 0; $this->setCurrent($this->res->current()); }