You are here

public function FacetapiUrlProcessorStandard::limitActiveItems in Facet API 7

Same name and namespace in other branches
  1. 7.2 plugins/facetapi/url_processor_standard.inc \FacetapiUrlProcessorStandard::limitActiveItems()

Checks the facet's global "limit_active_items" settings.

Return value

int Whether or not to limit active items to one per facet.

1 call to FacetapiUrlProcessorStandard::limitActiveItems()
FacetapiUrlProcessorStandard::getQueryString in plugins/facetapi/url_processor_standard.inc
Implements FacetapiUrlProcessor::getQueryString().

File

plugins/facetapi/url_processor_standard.inc, line 83
The standard url processor class.

Class

FacetapiUrlProcessorStandard
Url processor plugin that retrieves facet data from the query string.

Code

public function limitActiveItems(array $facet) {
  if (!isset($this->limitActiveItems[$facet['name']])) {
    $settings = $this->adapter
      ->getFacetSettingsGlobal($facet);
    $this->limitActiveItems[$facet['name']] = $settings->settings['limit_active_items'];
  }
  return $this->limitActiveItems[$facet['name']];
}