type = AUT_TABLE_AUTHORS; $this->default_index = "authors"; parent::__construct(); $this->filters = ['multi' => ['status', 'author_type']]; $this->setChampBaseFilepath($include_path."/indexation/authorities/authors/champs_base.xml"); } protected function addSpecificsFilters($id, $filters =array()){ $filters = parent::addSpecificsFilters($id, $filters); //Récupération du statut $query = "select author_type, num_statut from authors join authorities on author_id = num_object and type_object = ".$this->type." where id_authority = ".$id; $result = pmb_mysql_query($query); $row = pmb_mysql_fetch_object($result); $filters['multi']['author_type'] = $row->author_type; $filters['multi']['status'] = $row->num_statut; return $filters; } }