public function FacetapiAdapter::getEnabledFacets in Facet API 7
Same name and namespace in other branches
- 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::getEnabledFacets()
- 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::getEnabledFacets()
Returns enabled facets for the searcher associated with this adapter.
Parameters
string $realm_name: The machine readable name of the realm, pass NULL to get the enabled facets in all realms.
Return value
array An array of enabled facets.
See also
5 calls to FacetapiAdapter::getEnabledFacets()
- FacetapiAdapter::addActiveFilters in plugins/
facetapi/ adapter.inc - Allows the backend to add facet queries to its native query object.
- FacetapiAdapter::buildRealm in plugins/
facetapi/ adapter.inc - Uses each facet's widget to build the realm's render array.
- FacetapiAdapter::loadQueryTypePlugins in plugins/
facetapi/ adapter.inc - Returns an array of instantiated query type plugins for enabled facets.
- FacetapiAdapter::processActiveItems in plugins/
facetapi/ adapter.inc - Processes active facet items.
- FacetapiAdapter::processFacets in plugins/
facetapi/ adapter.inc - Initializes facet builds, sets the breadcrumb trail.
File
- plugins/
facetapi/ adapter.inc, line 901 - Adapter plugin and adapter related classes.
Class
- FacetapiAdapter
- Abstract class extended by Facet API adapters.
Code
public function getEnabledFacets($realm_name = NULL) {
return facetapi_get_enabled_facets($this->info['name'], $realm_name);
}