You are here

public function FacetapiFacet::__construct in Facet API 6

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/adapter.inc \FacetapiFacet::__construct()
  2. 7.2 plugins/facetapi/adapter.inc \FacetapiFacet::__construct()
  3. 7 plugins/facetapi/adapter.inc \FacetapiFacet::__construct()

Constructor, sets adapter and facet definition.

Parameters

$adapter: A FacetapiAdapter object.

$facet: An array containing the facet definition.

File

./facetapi.adapter.inc, line 241
Defines classes used by the FacetAPI module.

Class

FacetapiFacet
Stores facet data, provides methods that build the facet's render array.

Code

public function __construct(FacetapiAdapter $adapter, array $facet) {
  $this
    ->setAdapter($adapter)
    ->setFacet($facet);
}