Grido\Grid::getPerPage PHP Method

getPerPage() public method

Returns items per page.
public getPerPage ( ) : integer
return integer
    public function getPerPage()
    {
        return $this->perPage === NULL ? $this->getDefaultPerPage() : $this->perPage;
    }

Usage Example

コード例 #1
0
ファイル: Paginator.php プロジェクト: novotnej/grido
 /**
  * @return int
  */
 public function getCountEnd()
 {
     if ($this->countEnd === NULL) {
         $this->countEnd = $this->grid->getCount() > 0 ? min($this->grid->getCount(), $this->getPage() * $this->grid->getPerPage()) : 0;
     }
     return $this->countEnd;
 }