You are here

public function FacetapiAdapter::getPageTotal in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 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 416
Adapter plugin and adapter related calsses.

Class

FacetapiAdapter
Abstract class extended by search backends that retrieves facet information from the database.

Code

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