Class SampleForm

Description

This is the Class that handles the building of the Form itself. It creates the Form Elements inside the form_init_elements() method.

Located in /examples/form3.php (line 60)

FormContent
   |
   --SampleForm
Method Summary
SampleForm SampleForm ([ $width = 600])
void form ()
void form_action ()
void form_init_data ()
Variables
Methods
Constructor SampleForm (line 66)

constructor-- set up form

SampleForm SampleForm ([ $width = 600])
  • $width
form (line 300)

This is the method that builds the layout of where the FormElements will live. You can lay it out any way you like.

void form ()

Redefinition of:
FormContent::form()
This method builds the html form.
form_action (line 338)

This method is called ONLY after ALL validation has passed. This is the method that allows you to do something with the data, say insert/update records in the DB.

void form_action ()

Redefinition of:
FormContent::form_action()
This method handles the
form_backend_validation (line 326)

This method gets called after the FormElement data has passed the validation. This enables you to validate the data against some backend mechanism, say a DB.

void form_backend_validation ()

Redefinition of:
FormContent::form_backend_validation()
This method is called after the FormElements
form_init_data (line 272)

This method is called only the first time the form page is hit. This enables u to query a DB and pre populate the FormElement objects with data.

void form_init_data ()

Redefinition of:
FormContent::form_init_data()
This method is called by the
form_init_elements (line 76)

This method gets called EVERY time the object is created. It is used to build all of the FormElement objects used in this Form.

void form_init_elements ()

Redefinition of:
FormContent::form_init_elements()
This method is what is called to build the list of FormElements that will be used by this form.

Inherited Methods

Inherited From FormContent

FormContent::FormContent()
FormContent::add_action()
FormContent::add_action_element()
FormContent::add_cancel()
FormContent::add_element()
FormContent::add_error()
FormContent::add_hidden_action()
FormContent::add_hidden_element()
FormContent::add_image_action()
FormContent::build_confirm_table()
FormContent::element_exists()
FormContent::element_form()
FormContent::element_label()
FormContent::form()
FormContent::form_action()
FormContent::form_backend_validation()
FormContent::form_confirm()
FormContent::form_errors()
FormContent::form_init_data()
FormContent::form_init_elements()
FormContent::form_success()
FormContent::get_action()
FormContent::get_action_element()
FormContent::get_all_element_values()
FormContent::get_default_css()
FormContent::get_element()
FormContent::get_element_value()
FormContent::get_error_array()
FormContent::get_form_errors_width()
FormContent::get_form_name()
FormContent::get_form_tabindex()
FormContent::get_hidden_element_value()
FormContent::get_required_marker()
FormContent::has_confirm()
FormContent::hidden_element_label()
FormContent::is_readonly()
FormContent::javascript()
FormContent::pre_confirm()
FormContent::set_action()
FormContent::set_action_message()
FormContent::set_cancel_action()
FormContent::set_colon_flag()
FormContent::set_confirm()
FormContent::set_default_css()
FormContent::set_element_value()
FormContent::set_error_css()
FormContent::set_form_errors_title()
FormContent::set_form_errors_width()
FormContent::set_form_name()
FormContent::set_form_tabindex()
FormContent::set_form_width()
FormContent::set_hidden_element_value()
FormContent::set_readonly()
FormContent::set_required_marker()
FormContent::set_required_text()
FormContent::set_stripslashes()
FormContent::_pre_confirm()
FormContent::_set_validation_object()
FormContent::_test_element()

Documentation generated on Fri, 28 Jan 2011 08:53:04 -0500 by phpDocumentor 1.4.3