You are here

public function FacetapiAdapter::getPageNumber in Facet API 6.3

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

Returns the page number of the search result set.

Return value

int The current page of the result set.

File

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

Class

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

Code

public function getPageNumber() {
  return (isset($_GET['page']) ? $_GET['page'] : 0) + 1;
}