Esempio n. 1
0
 public function onSimpleSearch(&$query, &$where, $search)
 {
     $matched_options = array();
     $options = $this->getPredefinedValues();
     foreach ($options as $option) {
         if (strpos(mb_strtolower($search, 'UTF-8'), mb_strtolower($option->text, 'UTF-8')) !== false) {
             $matched_options[] = $option->value;
         }
     }
     parent::onSimpleSearch($query, $where, $matched_options);
 }