public function FacetapiAdapter::getResultCount in Facet API 6.3
Same name and namespace in other branches
- 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::getResultCount()
- 7 plugins/facetapi/adapter.inc \FacetapiAdapter::getResultCount()
Returns the number of results returned by the search query.
Return value
int An integer containing the number of results.
1 method overrides FacetapiAdapter::getResultCount()
- FacetapiTestAdapter::getResultCount in tests/
facetapi_test/ plugins/ facetapi/ test_adapter.inc - Returns the nmber of total results found for the current search.
File
- plugins/
facetapi/ adapter.inc, line 384 - Adapter plugin and adapter related calsses.
Class
- FacetapiAdapter
- Abstract class extended by search backends that retrieves facet information from the database.
Code
public function getResultCount() {
global $pager_total;
return isset($pager_total[0]) ? $pager_total[0] : 0;
}