public function loadCurrent($model, &$cursor) { $model->data = array_shift($cursor); $model->id = $model->data[$model->id_field]; }
public function next() { $this->hook('beforeLoad', array('iterating')); $this->controller->loadCurrent($this, $this->_cursor); if ($this->loaded()) { $this->hook('afterLoad'); } return $this; }