public function getTotalPages()
    {
        if ($this->_usePagination === false) {
            return 0;
        }
        if (!$this->isFetched) {
            $this->fetch();
        }

        return (int)ceil($this->_paginationFoundModels / $this->_paginationNbModelByPage);
    }
public function getTotalPages()
    {
        if ($this->_usePagination === false) {
            return 0;
        }
        if (!$this->isFetched) {
            $this->fetch();
        }

        return (int)ceil($this->_paginationFoundModels / $this->_paginationNbModelByPage);
    }
public function getTotalPages ( ) { if ( $ this -> _usePagination === false ) { return 0 ; } if ( ! $ this -> isFetched ) { $ this -> fetch ( ) ; } return ( int ) ceil ( $ this -> _paginationFoundModels / $ this -> _paginationNbModelByPage ) ; }
Return total page available

@return int
Return total page available