You are here

public function FacetapiAdapter::getQueryString in Facet API 7

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

Helper function that returns the query string variables for a facet item.

Parameters

array $facet: The facet definition as returned by facetapi_facet_load().

array $values: An array containing the item's values being added to or removed from the query string dependent on whether or not the item is active.

int $active: An integer flagging whether the item is active or not.

Return value

array The query string variables.

See also

FacetapiUrlProcessor::getQueryString()

File

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

Class

FacetapiAdapter
Abstract class extended by Facet API adapters.

Code

public function getQueryString(array $facet, array $values, $active) {
  return $this->urlProcessor
    ->getQueryString($facet, $values, $active);
}