You are here

public function FacetapiFilter::__construct in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 plugins/facetapi/filter.inc \FacetapiFilter::__construct()
  2. 7 plugins/facetapi/filter.inc \FacetapiFilter::__construct()

Initializes the filter object.

Parameters

array $adapter: The adapter object

array $realm: The realm being rendered.

array $settings: The realm settings.

FacetapiFacet $facet: The facet object.

File

plugins/facetapi/filter.inc, line 44
Base filter class and implementation.

Class

FacetapiFilter

Code

public function __construct($id, FacetapiAdapter $adapter, stdClass $settings) {
  $this->id = $id;
  $this->adapter = $adapter;
  $this->settings = $settings;
  $this->settings->settings += $this
    ->getDefaultSettings();
}