You are here

public function Pagination::getPageCount in Pagination (Node) 7

Same name and namespace in other branches
  1. 6 pagination.module \Pagination::getPageCount()

Return the page count.

Return value

An integer corresponding to the total number of pages.

1 call to Pagination::getPageCount()
Pagination::getPager in includes/Pagination.inc
Return a themed pager (Drupal default).

File

includes/Pagination.inc, line 132

Class

Pagination
Handles all the pagination logic

Code

public function getPageCount() {
  return count($this->page);
}