public function FacetapiAdapter::getPageTotal in Facet API 7
Same name and namespace in other branches
- 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::getPageTotal()
- 7.2 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 594 - 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;
}