entity = new authority(0, $id, AUT_TABLE_AUTHPERSO); $params['id_authority'] = $this->entity->get_object_instance()->id; $params['label'] = $this->entity->get_object_instance()->info['authperso']['name']; $this->params = $params; parent::__construct($type, $id, $isbd); } public function set_vedette_element_from_database(){ $this->entity = new authority(0, $this->id, AUT_TABLE_AUTHPERSO); $this->isbd = $this->entity->get_object_instance()->get_isbd($this->id); } public function get_link_see(){ return str_replace("!!type!!", "authperso",$this->get_generic_link()); } }