Class IterablePager
Iterate your active record in a page. Usefull to make a paging report.
$model = MyModel::model()->findByPk(1); $pager = new IterablePager($model, 20); foreach($pager as $stack) { // $stack = array with 20 length, contains MyModel implementation // next loop will be the next 20 and so on until the last of your // data. it respects your criteria also. }
- Docolight\Support\IterablePager implements Iterator
Methods summary
public
|
|
public
|
|
public
array
|
|
public
|
|
public
boolean
|
|
public
integer
|
|
abstract protected
mixed
|