public function FacetapiAdapter::itemActive in Facet API 6
Same name and namespace in other branches
- 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::itemActive()
- 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::itemActive()
- 7 plugins/facetapi/adapter.inc \FacetapiAdapter::itemActive()
Tests whether a facet item is active by passing it's value.
Parameters
$facet: An array containing the facet definition.
$value: A string containing the facet value.
Return value
An integer, 1 if the facet is active, 0 if the facet is not active.
File
- ./
facetapi.adapter.inc, line 102 - Defines classes used by the FacetAPI module.
Class
- FacetapiAdapter
- Abstract class extended by search backends that retrieves facet information from the database.
Code
public function itemActive($facet, $value) {
return $this
->getFacet($facet)
->itemActive($value);
}