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 .= "
"; $display .= pmb_bidi($authority->get_display_statut_class_html()."get_num_object()."', '".htmlentities(addslashes($titre_uniforme->get_header()),ENT_QUOTES, $charset)."','$callback')\">".$titre_uniforme->get_header().""); $display .= "
"; return $display; } protected function get_searcher_instance() { return searcher_factory::get_searcher('titres_uniformes', '', $this->user_input); } protected function get_entities_controller_instance($id=0) { return new entities_titres_uniformes_controller($id); } protected function get_link_pagination() { global $rech_regexp; global $oeuvre_type_selector; global $oeuvre_nature_selector; $link = static::get_base_url()."&rech_regexp=$rech_regexp&user_input=".rawurlencode($this->user_input)."&oeuvre_type_selector=".$oeuvre_type_selector."&oeuvre_nature_selector=".$oeuvre_nature_selector; return $link; } public function get_sel_search_form_template() { global $msg, $charset; $sel_search_form ="
!!oeuvre_type!!
!!oeuvre_nature!!
user_input,ENT_QUOTES,$charset)."\">   !!bouton_ajouter!!
"; return $sel_search_form; } } ?>