public function __construct($user_query) { global $pmb_search_all_keep_empty_words; parent::__construct($user_query); $this->field_restrict[] = array('field' => "code_champ", 'values' => array(18, 19, 20, 21, 23, 24, 25, 26), 'op' => "or", 'not' => false); if ($pmb_search_all_keep_empty_words) { $this->aq_wew = new analyse_query($this->user_query, 0, 0, 1, 1); } }
public function __construct($user_query) { global $lang; parent::__construct($user_query); $this->field_restrict = array(); $this->field_restrict[] = array('field' => "code_champ", 'values' => 25, 'op' => "and", 'not' => false); $this->field_restrict[] = array('field' => "lang", 'values' => $lang, 'op' => "and", 'not' => false); $this->keep_empty = 1; }
public function __construct($user_query, $id = 0) { parent::__construct($user_query); $this->field_restrict = array(); $sub = array(); if ($id > 0) { $sub[] = array('sub_field' => "code_ss_champ", 'values' => $id, 'op' => "and", 'not' => false); } $this->field_restrict[] = array('field' => "code_champ", 'values' => 100, 'op' => "and", 'not' => false, 'sub' => $sub); }
public function __construct($user_query) { parent::__construct($user_query); $this->field_restrict[] = array('field' => "code_champ", 'values' => array(41), 'op' => "and", 'not' => false); }