get_url_base()."&action=save&id=".$this->object_id; switch ($this->object_type) { case 'family_musicstand': return $submit_action."&num_family=".$num_family; case 'formation_type': return $submit_action."&num_formation=".$num_formation; default: return $submit_action; } } protected function get_display_label() { return "

".$this->label."

"; } protected function get_action_cancel_label() { global $msg; return $msg['admin_nomenclature_'.$this->object_type.'_form_exit']; } protected function get_action_save_label() { global $msg; return $msg['admin_nomenclature_'.$this->object_type.'_form_save']; } protected function get_action_delete_label() { global $msg; return $msg['admin_nomenclature_'.$this->object_type.'_form_del']; } protected function get_js_script_error_label() { global $msg; return $msg['admin_nomenclature_'.$this->object_type.'_form_name_error']; } protected function get_js_script() { if(isset($this->field_focus) && $this->field_focus) { return " "; } return ""; } public function set_object_type($object_type) { $this->object_type = $object_type; return $this; } }