Пример #1
0
 /**
  * @param CategoryQuery $search
  * @param string $searchTerm
  * @param string $searchIn
  * @param string $searchCriteria
  */
 public function doSearch(&$search, $searchTerm, $searchIn, $searchCriteria)
 {
     $search->_and();
     $search->where("CASE WHEN NOT ISNULL(`requested_locale_i18n`.ID) THEN `requested_locale_i18n`.`TITLE` ELSE `default_locale_i18n`.`TITLE` END " . $searchCriteria . " ?", $searchTerm, \PDO::PARAM_STR);
 }
Пример #2
0
 /**
  * @param CategoryQuery $search
  * @param string $searchTerm
  * @param array $searchIn
  * @param string $searchCriteria
  */
 public function doSearch(&$search, $searchTerm, $searchIn, $searchCriteria)
 {
     $search->_and();
     $this->addStandardI18nSearch($search, $searchTerm, $searchCriteria);
 }