public function FacetapiFacet::__construct in Facet API 7.2
Same name and namespace in other branches
- 6.3 plugins/facetapi/adapter.inc \FacetapiFacet::__construct()
- 6 facetapi.adapter.inc \FacetapiFacet::__construct()
- 7 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 1166 - 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;
}