public function FacetapiAdapter::getEnabledFacets in Facet API 6.3
Same name and namespace in other branches
- 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::getEnabledFacets()
- 7 plugins/facetapi/adapter.inc \FacetapiAdapter::getEnabledFacets()
Returns the enabled facets associated with the instance of the 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.
5 calls to FacetapiAdapter::getEnabledFacets()
- FacetapiAdapter::addActiveFilters in plugins/
facetapi/ adapter.inc - Adds facet query type plugins to the queue and invokes the execute() hook to allow for the backend to add filters to its native query object.
- FacetapiAdapter::buildRealm in plugins/
facetapi/ adapter.inc - Builds the render array for facets in a realm.
- FacetapiAdapter::processActiveItems in plugins/
facetapi/ adapter.inc - Processes active items.
- FacetapiAdapter::processFacets in plugins/
facetapi/ adapter.inc - Initializes facet builds, adds breadcrumb trail.
- FacetapiAdapter::__construct in plugins/
facetapi/ adapter.inc - Constructor, sets searcher and type of content being indexed.
File
- plugins/
facetapi/ adapter.inc, line 675 - Adapter plugin and adapter related calsses.
Class
- FacetapiAdapter
- Abstract class extended by search backends that retrieves facet information from the database.
Code
public function getEnabledFacets($realm_name = NULL) {
return facetapi_get_enabled_facets($this->info['name'], $realm_name);
}