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