/** * Constructor * * @param \VuFind\Config\PluginManager $configLoader Config loader */ public function __construct(\VuFind\Config\PluginManager $configLoader) { parent::__construct($configLoader); $searchSettings = $configLoader->get($this->searchIni); // Load autocomplete preference: if (isset($searchSettings->Autocomplete->enabled)) { $this->autocompleteEnabled = $searchSettings->Autocomplete->enabled; } }
/** * Constructor * * @param \VuFind\Config\PluginManager $configLoader Config loader */ public function __construct(\VuFind\Config\PluginManager $configLoader) { parent::__construct($configLoader); $searchSettings = $configLoader->get($this->searchIni); // Load autocomplete preference: if (isset($searchSettings->Autocomplete->enabled)) { $this->autocompleteEnabled = $searchSettings->Autocomplete->enabled; } $facetSettings = $configLoader->get($this->facetsIni); if (isset($facetSettings->SpecialFacets->dateRangeVis)) { $this->dateRangeVis = $facetSettings->SpecialFacets->dateRangeVis; } }