/** * 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++; }
/** * @return mixed */ function key() { return $this->_result->key(); }