limitBy() public method

Limits number of rows.
public limitBy ( integer $limit, integer $offset = null ) : Nextras\Orm\Collection\ICollection
$limit integer
$offset integer
return Nextras\Orm\Collection\ICollection
示例#1
0
文件: Control.php 项目: ytnuk/orm
 public function getIterator() : IteratorAggregate
 {
     return $this->collection->limitBy($this->paginator->getItemsPerPage(), $this->paginator->getOffset()) ?: parent::getIterator();
 }