objects_type = 'titres_uniformes'; } protected function get_form() { global $charset; global $titre_uniforme_form; global $selector_titre_uniforme_form; $titre_uniforme_form = $selector_titre_uniforme_form; $titre_uniforme_form = str_replace("!!deb_saisie!!", htmlentities($this->user_input,ENT_QUOTES,$charset), $titre_uniforme_form); $titre_uniforme_form = str_replace("!!base_url!!",static::get_base_url(),$titre_uniforme_form); $titre_uniforme = new titre_uniforme(0); $titre_uniforme->show_form(); } protected function get_search_form() { global $msg, $charset; global $sel_search_form; global $oeuvre_type_selector, $oeuvre_nature_selector; $sel_search_form = parent::get_search_form(); $select_oeuvre_type = new marc_select( 'oeuvre_type', 'oeuvre_type_selector', ($oeuvre_type_selector ? $oeuvre_type_selector : '0'), '', '0', $msg['authorities_select_all']); $sel_search_form = str_replace( '!!oeuvre_type!!', $select_oeuvre_type->display, $sel_search_form); $select_oeuvre_nature = new marc_select( 'oeuvre_nature', 'oeuvre_nature_selector', ($oeuvre_nature_selector ? $oeuvre_nature_selector : '0'), '', '0', $msg['authorities_select_all']); $select_oeuvre_nature->first_item_at_last(); $sel_search_form = str_replace( '!!oeuvre_nature!!', $select_oeuvre_nature->get_radio_selector(), $sel_search_form); return $sel_search_form; } protected function save() { global $name; global $oeuvre_nature; global $oeuvre_type; global $authority_statut; global $forcing; $value = array( 'name' => $name, 'oeuvre_nature' => $oeuvre_nature, 'oeuvre_type' => $oeuvre_type, 'statut'=> $authority_statut); if(!isset($forcing)){ $forcing = false; } $titre_uniforme = new titre_uniforme(); $titre_uniforme->update($value, $forcing); return $titre_uniforme->id; } protected function get_authority_instance($authority_id=0, $object_id=0) { return new authority($authority_id, $object_id, AUT_TABLE_TITRES_UNIFORMES); } protected function get_display_object($authority_id=0, $object_id=0) { global $msg, $charset; global $caller; global $callback; $display = ''; $authority = $this->get_authority_instance($authority_id, $object_id); $titre_uniforme = $authority->get_object_instance(); $display .= "