You are here

public function FacetapiAdapter::getPageTotal in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::getPageTotal()
  2. 7 plugins/facetapi/adapter.inc \FacetapiAdapter::getPageTotal()

Returns the total number of pages in the result set.

Return value

int The total number of pages.

File

plugins/facetapi/adapter.inc, line 593
Adapter plugin and adapter related classes.

Class

FacetapiAdapter
Abstract class extended by Facet API adapters.

Code

public function getPageTotal() {
  global $pager_total;
  return isset($pager_total[0]) ? $pager_total[0] : 0;
}