You are here

public function FacetapiAdapter::getPageLimit in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::getPageLimit()
  2. 7 plugins/facetapi/adapter.inc \FacetapiAdapter::getPageLimit()

Returns the number of results per page.

Return value

int The number of results per page, or the limit.

File

plugins/facetapi/adapter.inc, line 395
Adapter plugin and adapter related calsses.

Class

FacetapiAdapter
Abstract class extended by search backends that retrieves facet information from the database.

Code

public function getPageLimit() {
  global $pager_limits;
  return isset($pager_limits[0]) ? $pager_limits[0] : 10;
}