public function FacetapiAdapter::getResultCount in Facet API 7.2
Same name and namespace in other branches
- 6.3 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 The number of results returned by the search query.
1 method overrides FacetapiAdapter::getResultCount()
- FacetapiTestAdapter::getResultCount in tests/
facetapi_test.plugins.inc - Overrides FacetapiAdapter::getResultCount().
File
- plugins/
facetapi/ adapter.inc, line 561 - Adapter plugin and adapter related classes.
Class
- FacetapiAdapter
- Abstract class extended by Facet API adapters.
Code
public function getResultCount() {
global $pager_total;
return isset($pager_total[0]) ? $pager_total[0] : 0;
}