public function FacetapiAdapter::__construct in Facet API 6
Same name and namespace in other branches
- 6.3 plugins/facetapi/adapter.inc \FacetapiAdapter::__construct()
- 7.2 plugins/facetapi/adapter.inc \FacetapiAdapter::__construct()
- 7 plugins/facetapi/adapter.inc \FacetapiAdapter::__construct()
Constructor, sets searcher and type of content being indexed.
Parameters
$searcher: A string containing the machine readable name of the searcher module.
$type: A string containing the type of content indexed by $searcher.
$module: A string containing the module that defined the adapter.
File
- ./
facetapi.adapter.inc, line 49 - Defines classes used by the FacetAPI module.
Class
- FacetapiAdapter
- Abstract class extended by search backends that retrieves facet information from the database.
Code
public function __construct($searcher, $type, $module) {
$this
->setSearcher($searcher)
->setType($type)
->setModule($module);
}