function getPageCount() {
		if (!$this->limit) {
			return 1;
		}
		$rem = ($this->getTotal() % $this->limit);
		$rem = ($rem >= 0) ? $rem : 0;
		$total_pages = ($this->getTotal() - $rem) / $this->limit;
		if ($rem)
			$total_pages++;
		return $total_pages;
	}
function getPageCount() {
		if (!$this->limit) {
			return 1;
		}
		$rem = ($this->getTotal() % $this->limit);
		$rem = ($rem >= 0) ? $rem : 0;
		$total_pages = ($this->getTotal() - $rem) / $this->limit;
		if ($rem)
			$total_pages++;
		return $total_pages;
	}
function getPageCount ( ) { if ( ! $ this -> limit ) { return 1 ; } $ rem = ( $ this -> getTotal ( ) % $ this -> limit ) ; $ rem = ( $ rem >= 0 ) ? $ rem : 0 ; $ total_pages = ( $ this -> getTotal ( ) - $ rem ) / $ this -> limit ; if ( $ rem ) $ total_pages ++ ; return $ total_pages ; }
Gets the total number of pages
Gets the total number of pages