public function get_row_editing_form(Database_Row $row, HTMLTags_URL $action_url, HTMLTags_URL $cancel_url) { $form = new HTMLTags_SimpleOLForm($this->get_row_editing_form_name($row)); $form->set_action($action_url); $form->set_legend_text($this->get_legend_text($row)); $form->set_cancel_text($this->get_cancel_link_text()); $form->set_cancel_location($cancel_url); $form->set_submit_text($this->get_row_editing_form_submit_text()); $field_names = $this->get_row_editing_form_field_names(); foreach ($field_names as $field_name) { $input = $this->get_row_editing_form_field_input($row, $field_name); $form->add_input_tag($field_name, $input, $this->has_row_editing_form_field_label_text($field_name) ? $this->get_row_editing_form_field_label_text($field_name) : NULL); } return $form; }