This is a magic container that allows you to chain together multiple FormContent objects to automatically create a Wizard process.
Located in /form/FormWizard.inc (line 38)
Container | --FormProcessor | --FormWizard
Class | Description |
---|---|
MyWizard | This is a magic container that allows you to chain together multiple FormContent objects to automatically create a Wizard process. |
The CSS class for the buttons
Flag to tell us to enable confirmation or not
The image path prefix.
If an image lives on the server in /images/foo/blah.jpg then this prefix should be /images/foo
Last step text.
By default it is 'Finish'
This holds the array of
step objects for the wizard
Holds a bunch of state
variables
Inherited from FormProcessor
FormProcessor::$_auto_show_errors
FormProcessor::$_confirmed
FormProcessor::$_confirmed_successful
FormProcessor::$_FormValidation
FormProcessor::$_form_attributes
FormProcessor::$_form_content
FormProcessor::$_form_submit_action
FormProcessor::$_form_success_render
FormProcessor::$_has_errors
The constructor
This adds a step to the wizard
Get the wizard session id
This gets a saved wizard variable
This gets the value of the confirmation flag.
which tells the caller that this object has/doesn't have a required confirmation page.
This function renders the
FormWizard
This function renders the confirmation page. This page sits in between the front end form, and the action handler.
This only gets called after a form and its data has been successfully validated.
This function is used to setup the validation object and the form errors object that is to be used by this form.
You can override this method to use a different FormErrors object for localization.
This method sets the button CSS class
This sets the $this->_has_confirmation
flag. to let the object know it has a required confirmation page, which should get called after the validation is successfull, and before the action is handled on the back-end.
This method sets the text to be used for the last/final step prior to the action being taken.
This is used to save a wizard variable associated with a particular wizard instance
A subclass can override this function to setup the class variables after the constructor. The constructor automatically calls this function.
Override this so that we can place the toolbar first inside the form tag. We also have to make sure the onsubmit stuff is working properly.
This builds the javascript needed for the navigation of the wizard
This function builds an image for a step #
This renders the toolbar/step table
for the navigation of the wizard
This function cleans up the saved Session state for the wizard. This gets called when we have completed the wizard w/o errors.
This returns the current step id
from the session
This function initializes all of the fields we need to keep track of for the internal state of the wizard. It also walks each of the step FormContent objects and initializes them.
We save some of the state of the wizard in the session.
This is used to initialize all of the form content
children classes
This method initializes the session
variable that we use
This tests to see if the step has been visited or not.
This method does the logic of
doing the form processing
This ensures that we have sessions started
This sets the current step id
This function sets the _form_content object for the current step we are operating on.
The parent FormProcessor needs this object set in order to process the step correctly.
This sets the state variable for the step to let us know it has been visited or not
Inherited From FormProcessor
FormProcessor::FormProcessor()
FormProcessor::can_validate()
FormProcessor::do_validation()
FormProcessor::get_action()
FormProcessor::get_auto_error_display()
FormProcessor::get_error_array()
FormProcessor::get_error_display_object()
FormProcessor::get_form_action()
FormProcessor::get_form_enctype()
FormProcessor::get_form_method()
FormProcessor::get_form_name()
FormProcessor::get_form_target()
FormProcessor::get_onsubmit()
FormProcessor::has_errors()
FormProcessor::is_action_successful()
FormProcessor::render()
FormProcessor::render_confirm()
FormProcessor::render_error()
FormProcessor::render_form()
FormProcessor::setup_validation()
FormProcessor::set_auto_error_display()
FormProcessor::set_form_action()
FormProcessor::set_form_attribute()
FormProcessor::set_form_enctype()
FormProcessor::set_form_method()
FormProcessor::set_form_name()
FormProcessor::set_form_target()
FormProcessor::set_onsubmit()
FormProcessor::set_render_form_after_success()
FormProcessor::_add_confirm_data()
FormProcessor::_add_hidden_fields()
FormProcessor::_build_form_tag()
FormProcessor::_build_javascript()
FormProcessor::_init_form_content()
FormProcessor::_pre_confirm()
FormProcessor::_process_action()
FormProcessor::_process_form()
FormProcessor::_set_action()
FormProcessor::_set_confirmed_success()
FormProcessor::__hidden_fields()
Inherited From Container
Container::Container()
Container::add()
Container::add_reference()
Container::count_content()
Container::get_element()
Container::get_indent_flag()
Container::push()
Container::push_reference()
Container::render()
Container::reset_content()
Container::set_collapse()
Container::set_indent_flag()
Documentation generated on Fri, 28 Jan 2011 08:53:07 -0500 by phpDocumentor 1.4.3