You are here

public function FacetapiFacet::__construct in Facet API 7

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

Constructs a FacetapiAdapter object.

Sets the adapter and facet definitions.

Parameters

FacetapiAdapter $adapter: he FacetapiAdapter object this class was instantiated from.

array $facet: The facet definition as returned by facetapi_facet_load().

File

plugins/facetapi/adapter.inc, line 1171
Adapter plugin and adapter related classes.

Class

FacetapiFacet
Wrapper around the facet definition with methods that build render arrays.

Code

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