Grido\Grid::getPerPage PHP Метод

getPerPage() публичный Метод

Returns items per page.
public getPerPage ( ) : integer
Результат integer
    public function getPerPage()
    {
        return $this->perPage === NULL ? $this->getDefaultPerPage() : $this->perPage;
    }

Usage Example

Пример #1
0
 /**
  * @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;
 }