Beispiel #1
0
 /**
  * Iterator: move pointer to next item
  *
  * @return void
  */
 public function next()
 {
     if ($this->buffer === null) {
         $this->buffer = -2;
         // implicitly disable buffering from here on
     }
     if (!is_array($this->buffer) || $this->position == $this->dataSource->key()) {
         $this->dataSource->next();
     }
     $this->position++;
 }
Beispiel #2
0
 /**
  * @return mixed
  */
 function key()
 {
     return $this->_result->key();
 }