You are here

abstract public function FacetapiUrlProcessor::normalizeParams in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/url_processor.inc \FacetapiUrlProcessor::normalizeParams()
  2. 7 plugins/facetapi/url_processor.inc \FacetapiUrlProcessor::normalizeParams()

Normalizes the array returned by FacetapiAdapter::fetchParams().

When extracting data from a source such as $_GET, there are certain items that you might nor want, for example the "q" or "page" keys. This method is useful for filtering those out. In addition, plugins that do not get data from $_GET can use this method to normalize the data into an associative array that closely matches the data structure of $_GET.

Parameters

array $params: An array of keyed params, usually as $_GET.

string $filter_key: The array key in $params containing the facet data, defaults to "f".

Return value

array An associative array containing the normalized params.

1 method overrides FacetapiUrlProcessor::normalizeParams()
FacetapiUrlProcessorStandard::normalizeParams in plugins/facetapi/url_processor_standard.inc
Implements FacetapiUrlProcessor::normalizeParams().

File

plugins/facetapi/url_processor.inc, line 81
Base url processor plugin class.

Class

FacetapiUrlProcessor
Abstract class extended by url processor plugins.

Code

public abstract function normalizeParams(array $params, $filter_key = 'f');