20 public $useAutosuggest =
true;
25 public $uniqClassName;
30 public $config = array();
35 public $landingPage =
'';
51 $lang = Yii::app()->language;
52 $this->uniqClassName = uniqid(
'simpleSearch');
55 if ($this->landingPage ==
'') {
60 $this->render(
'AdvancedSearchWidget', array(
'landingPage' => $this->landingPage));
68 private function _loadConfig()
70 $this->config[
'mimetype'] = Yii::app()->getModule(
'search')->mimetype;
71 $this->config[
'whereToSearch'] = Yii::app()->getModule(
'search')->whereToSearch;
72 $this->config[
'searchType'] = Yii::app()->getModule(
'search')->searchType;
73 $this->config[
'urlLimiter'] = Yii::app()->getModule(
'search')->urlLimiter;
75 foreach ($this->config as $type=>$config) {
76 if (isset($config[
'options'])) {
77 foreach ($config[
'options'] as $option=>$value) {
84 public function getSecureAutosuggestUrl()
86 if(empty($this->autosuggestUrl)) {
89 $sm = Yii::app()->securityManager;
90 return $sm->hashData($this->autosuggestUrl);