You are here

public function FacetapiQueryType::getSettings in Facet API 7.2

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/query_type.inc \FacetapiQueryType::getSettings()
  2. 7 plugins/facetapi/query_type.inc \FacetapiQueryType::getSettings()

Convenience method to get the facet's global and per realm settings.

Parameters

string|array $realm: The machine readable name of the realm or an array containing the realm definition. Pass NULL to return the facet's global settings.

Return value

stdClass An object containing the settings.

See also

FacetapiFacet::getSettings()

File

plugins/facetapi/query_type.inc, line 158
Interfaces and base classes for query type plugins.

Class

FacetapiQueryType
Base class for query type plugins.

Code

public function getSettings($realm = NULL) {
  return $this->adapter
    ->getFacet($this->facet)
    ->getSettings($realm);
}