Nextras\Orm\Collection\ICollection::limitBy PHP 메소드

limitBy() 공개 메소드

Limits number of rows.
public limitBy ( integer $limit, integer $offset = null ) : Nextras\Orm\Collection\ICollection
$limit integer
$offset integer
리턴 Nextras\Orm\Collection\ICollection
    public function limitBy($limit, $offset = null);

Usage Example

예제 #1
0
파일: Control.php 프로젝트: ytnuk/orm
 public function getIterator() : IteratorAggregate
 {
     return $this->collection->limitBy($this->paginator->getItemsPerPage(), $this->paginator->getOffset()) ?: parent::getIterator();
 }