public function CurrentSearchItem::__construct in Facet API 6.3
Same name and namespace in other branches
- 7.2 contrib/current_search/plugins/current_search/item.inc \CurrentSearchItem::__construct()
- 7 contrib/current_search/plugins/current_search/item.inc \CurrentSearchItem::__construct()
Constructs a CurrentSearchItem object.
Parameters
string $name: The machine readable name of the item this instance is associated with.
stdClass $config: The full current search block configuration.
File
- contrib/
current_search/ plugins/ current_search/ item.inc, line 49 - Current search plugin base class.
Class
- CurrentSearchItem
- Base class for current search item plugins.
Code
public function __construct($name, $config = NULL) {
$this->name = $name;
if (isset($config->settings['items'][$name])) {
$this->configName = $config->name;
$this->settings = $config->settings['items'][$name] + $this
->getDefaultSettings();
}
else {
$this->settings = $this
->getDefaultSettings();
}
}