コード例 #1
0
ファイル: Options.php プロジェクト: jlehmus/NDL-VuFind2
 /**
  * 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;
     }
 }
コード例 #2
0
ファイル: Options.php プロジェクト: bbeckman/NDL-VuFind2
 /**
  * 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;
     }
 }