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

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

public getPageCount ( ) : integer
Результат integer number of pages, -1 if under custom paging mode and {@link setVirtualCount VirtualCount} is not set.
    public function getPageCount()
    {
        if ($this->_customPaging) {
            if ($this->_virtualCount >= 0) {
                return (int) (($this->_virtualCount + $this->_pageSize - 1) / $this->_pageSize);
            } else {
                return -1;
            }
        } else {
            return (int) ((parent::getCount() + $this->_pageSize - 1) / $this->_pageSize);
        }
    }