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