object_id = 'id_notice'; $this->object_key = 'notice_id'; $this->object_index_table = 'notices_fields_global_index'; $this->object_table = 'notices'; parent::__construct(); $this->filters = ['multi' => ['statut', 'typdoc'], 'bigint' => ['date_parution']]; $this->setChampBaseFilepath($include_path."/indexation/notices/champs_base.xml"); } protected function addSpecificsFilters($id, $filters = array()) { $filters = parent::addSpecificsFilters($id, $filters); $result = pmb_mysql_query("SELECT typdoc, statut, TIMESTAMPDIFF(second, FROM_UNIXTIME(0), date_parution) AS date_parution FROM notices WHERE notice_id = $id"); $row = pmb_mysql_fetch_object($result); $filters['multi']['statut'] = $row->statut; $filters['multi']['typdoc'] = $row->typdoc; $filters['bigint']['date_parution'] = $row->date_parution; return $filters; } }