entity = authorities_collection::get_authority(AUT_TABLE_AUTHORITY, 0, [ 'num_object' => $id, 'type_object' => AUT_TABLE_AUTHPERSO]); $params['id_authority'] = $this->entity->get_object_instance()->id; $params['label'] = $this->entity->get_object_instance()->info['authperso']['name']; $params['authperso_name'] = $this->entity->get_type_label(); parent::__construct($type, $id, $isbd, $params); } public function set_vedette_element_from_database(){ $this->entity = authorities_collection::get_authority(AUT_TABLE_AUTHORITY, 0, [ 'num_object' => $this->id, 'type_object' => 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()); } }