Controller_Data::prefetchAll PHP Method

prefetchAll() abstract public method

If the data store does not support cursors, then fetch all data and return array. loadCurrent will automatically array_shift one record on each call.
abstract public prefetchAll ( $model )
    public abstract function prefetchAll($model);

Usage Example

Example #1
0
File: Model.php Project: atk4/atk4
 public function rewind()
 {
     $this->unload();
     $this->_cursor = $this->controller->prefetchAll($this);
     $this->next();
 }