get_object_instance(); $id = 0; $object_instance->show_form($object_instance->type,true); } public function proceed_update() { global $msg; global $author_type, $author_nom, $author_rejete; global $date, $author_web, $author_isni, $author_comment; global $voir_id; global $lieu, $ville, $pays; global $subdivision, $numero; global $author_import_denied; global $authority_statut, $authority_thumbnail_url; global $forcing_values; global $forcing; if (empty($forcing_values)) { // mise à jour d'un auteur $author = array( 'type' => $author_type, 'name' => $author_nom, 'rejete' => $author_rejete, 'date' => $date, 'author_web' => $author_web, 'author_isni' => $author_isni, 'author_comment'=> $author_comment, 'voir_id' => $voir_id, 'lieu' => $lieu, 'ville' => $ville, 'pays' => $pays, 'subdivision' => $subdivision, 'numero' => $numero, 'import_denied' => (isset($author_import_denied) ? $author_import_denied : 0), 'statut' => $authority_statut, 'thumbnail_url' => $authority_thumbnail_url ); } else { $author = encoding_normalize::json_decode(stripslashes($forcing_values), true); } $object_instance = $this->get_object_instance(); if (!isset($forcing)) { $forcing = false; } $updated = $object_instance->update($author, $forcing); if($object_instance->get_cp_error_message()){ error_message($msg['200'], $object_instance->get_cp_error_message(), 1, $this->get_edit_link()); } elseif($updated) { global $type_autorite; $type_autorite=$author_type; return $object_instance->id; } return 0; } public function proceed_form() { global $type_autorite, $cataloging_scheme_id, $id; $unlock_unload_script = ""; if($this->id){ $entity_locking = new entity_locking($id, $this->get_type_const()); $entity_locking->lock_entity(); $unlock_unload_script = $entity_locking->get_polling_script(); } $object_instance = $this->get_object_instance(); ob_start(); $object_instance->show_form($type_autorite); $entity_form = ob_get_contents(); ob_end_clean(); $entity_form = str_replace('