You are here

public function FacetapiAdapter::getResultCount in Facet API 7

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::getResultCount()
  2. 7.2 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 562
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;
}