Class Form7Content

Description

A simple Page Layout object child.

this came from Example 3.

Located in /examples/form7.php (line 252)

FormContent
   |
   --StandardFormContent
      |
      --Form7Content
Variable Summary
Method Summary
void confirm_action ()
void form_action ()
void form_content ()
void form_init_data ()
void get_CSV_data ()
void get_CSV_header ()
void read_CSV_data ( $url, [ $header = true], [ $comment1 = true], [ $comment2 = true], [ $blank = true])
void set_url_info_table ( $url)
Variables
Methods
confirm_action (line 572)

This method will get called after all validation has passed, and the confirmation has been accepted.

This is where u save the info to the DB.

void confirm_action ()

Redefinition of:
StandardFormContent::confirm_action()
This method is responsible for handling the confirmation page's Confirm action.
form_action (line 550)
void form_action ()

Redefinition of:
StandardFormContent::form_action()
This method handles the form action.
form_backend_validation (line 533)

This method gets called after the FormElement data has passed the validation, and has been confirmed. 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_content (line 503)

This method is called by the StandardFormContent object to allow you to build the 'blocks' of fields you want to display. Each form block will live inside a fieldset tag with the a title.

In this example we have 2 form 'blocks'.

void form_content ()

Redefinition of:
StandardFormContent::form_content()
Child class MUST override this to provide the form fields
form_init_data (line 479)

This method is called only the first time the form page is hit.

void form_init_data ()

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

This method gets called EVERY time the object is

created

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.
get_CSV_data (line 340)

This method returns the CSV data.

void get_CSV_data ()
get_CSV_header (line 347)

This method returns the CSV header.

void get_CSV_header ()
get_url_info_table (line 266)

This method returns the InfoTable widget.

void get_url_info_table ()
load_CSV_data_from_session (line 422)
void load_CSV_data_from_session ()
load_CSV_header_from_session (line 433)
void load_CSV_header_from_session ()
load_InfoTable_from_session (line 321)

This method retrieves the InfoTable from the session so it can be used across multiple page views.

void load_InfoTable_from_session ()
read_CSV_data (line 356)

This method reads the CSV data and stores it in a property so it can be used later to seed the the DataList widget.

void read_CSV_data ( $url, [ $header = true], [ $comment1 = true], [ $comment2 = true], [ $blank = true])
  • $url
  • $header
  • $comment1
  • $comment2
  • $blank
save_CSV_data_to_session (line 427)
void save_CSV_data_to_session ()
save_CSV_header_to_session (line 438)
void save_CSV_header_to_session ()
save_InfoTable_to_session (line 331)

This method saves the InfoTable to the session so it can be used across multiple page views.

void save_InfoTable_to_session ()
set_url_info_table (line 275)

This method creates an InfoTable widget which is used to display information regarding the supplied url (remote file).

void set_url_info_table ( $url)
  • $url

Inherited Methods

Inherited From StandardFormContent

StandardFormContent::StandardFormContent()
StandardFormContent::add_form_block()
StandardFormContent::build_form_block()
StandardFormContent::confirm_action()
StandardFormContent::form()
StandardFormContent::form_action()
StandardFormContent::form_confirm()
StandardFormContent::form_content()
StandardFormContent::form_content_buttons()
StandardFormContent::get_wizard_id()
StandardFormContent::set_action_label()
StandardFormContent::set_cancel_label()
StandardFormContent::set_form_title()
StandardFormContent::set_wizard_id()
StandardFormContent::_div_wrapper()
StandardFormContent::_form_content_table()

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:05 -0500 by phpDocumentor 1.4.3