You are here

public function FacetapiAdapter::initUrlProcessor in Facet API 7

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

Extracts, stores, and processes facet data.

Wrapper around FacetapiAdapter::setParams() that fetches the params via the url processor plugin from some source, usually $_GET, and passes the filter key that is set in the plugin. This method is useful when the params and filter key are reset directly through the url processor and the active items need to be reprocessed by the adapter.

See also

FacetapiAdapter::setParams()

1 call to FacetapiAdapter::initUrlProcessor()
FacetapiAdapter::__construct in plugins/facetapi/adapter.inc
Constructs a FacetapiAdapter object.

File

plugins/facetapi/adapter.inc, line 244
Adapter plugin and adapter related classes.

Class

FacetapiAdapter
Abstract class extended by Facet API adapters.

Code

public function initUrlProcessor() {
  $params = $this->urlProcessor
    ->fetchParams();
  $filter_key = $this->urlProcessor
    ->getFilterKey();
  $this
    ->setParams($params, $filter_key);
}