You are here

public function CurrentSearchItem::getQueryString in Facet API 7

Same name and namespace in other branches
  1. 6.3 contrib/current_search/plugins/current_search/item.inc \CurrentSearchItem::getQueryString()
  2. 7.2 contrib/current_search/plugins/current_search/item.inc \CurrentSearchItem::getQueryString()

Helper function that returns a facet's query string.

Ensures that all active child values are deactivated along with the parent.

Parameters

array $item: The item as returned by FacetapiAdapter::getAllActiveItems().

FacetapiAdapter $adapter: The adapter object associated with the searcher executing the search.

Return value

array An array containing the query string variables.

See also

UrlProcessor::getQueryString()

2 calls to CurrentSearchItem::getQueryString()
CurrentSearchGroup::execute in contrib/current_search/plugins/current_search/item_group.inc
Implements CurrentSearchItem::execute().
CurrentSearchItemActive::execute in contrib/current_search/plugins/current_search/item_active.inc
Implements CurrentSearchItem::execute().

File

contrib/current_search/plugins/current_search/item.inc, line 311
Base current search item plugin class.

Class

CurrentSearchItem
Abstract class extended by current search item plugins.

Code

public function getQueryString(array $item, FacetapiAdapter $adapter) {
  return $adapter
    ->getProcessor($item['facets'][0])
    ->getQueryString($this
    ->getItemValues($item, $adapter), 1);
}