entity = authorities_collection::get_authority(AUT_TABLE_AUTHORITY, 0, [ 'num_object' => $id, 'type_object' => AUT_TABLE_AUTHPERSO]); if (empty($params['id_authority'])) { $params['id_authority'] = $this->entity->get_object_instance()->get_authperso_num(); } if (empty($params['label'])){ $params['authperso_name'] = $this->entity->get_type_label(); } else { $params['authperso_name'] = $params['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]); if ($this->entity->get_object_instance()->get_isbd($this->id)){ $this->isbd = $this->entity->get_object_instance()->get_isbd($this->id); } else { $this->isbd = onto_contribution_datatype_resource_selector::get_properties_from_uri($this->id)['isbd']; } } public function get_link_see(){ return str_replace("!!type!!", "authperso",$this->get_generic_link()); } }