public function __construct($user_query) { parent::__construct($user_query); $this->object_table = "notices"; $this->object_key = "notice_id"; $this->object_index_key = "id_notice"; $this->object_words_table = "notices_mots_global_index"; $this->object_fields_table = "notices_fields_global_index"; }
function __construct($user_query, $type_obj = 'article') { parent::__construct($user_query); $this->type_obj = $type_obj; $this->field_restrict[] = array('field' => 'type', 'values' => $this->type_obj, 'op' => "and", 'not' => false); $this->object_table = 'cms_' . $this->type_obj . 's'; $this->object_key = 'id_' . $this->type_obj; $this->object_index_key = "num_obj"; $this->object_words_table = "cms_editorial_words_global_index"; $this->object_fields_table = "cms_editorial_fields_global_index"; }
public function __construct($user_query) { parent::__construct($user_query); $this->object_index_key = "id_authority"; $this->object_words_table = "authorities_words_global_index"; $this->object_fields_table = "authorities_fields_global_index"; $this->object_key = 'id_authority'; if ($this->authority_type) { $this->field_restrict[] = array('field' => "type", 'values' => array($this->authority_type), 'op' => "and", 'not' => false); } }