You are here

public function FacetapiFacet::__construct in Facet API 6.3

Same name and namespace in other branches
  1. 6 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

plugins/facetapi/adapter.inc, line 912
Adapter plugin and adapter related calsses.

Class

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

Code

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