Prado\Collections\TPagedDataSource::getPageCount PHP Метод

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

public getPageCount ( ) : integer
Результат integer number of pages
    public function getPageCount()
    {
        if ($this->_dataSource === null) {
            return 0;
        }
        $count = $this->getDataSourceCount();
        if (!$this->_allowPaging || $count <= 0) {
            return 1;
        }
        return (int) (($count + $this->_pageSize - 1) / $this->_pageSize);
    }