This is the main engine for the processing
of Forms. It builds the form tag, and calls the appropriate FormContent methods to build the FormElement's and validation, as well as backend processing to do the action after the data has been validated.
Located in /form/FormProcessor.inc (line 31)
Container | --FormProcessor
Class | Description |
---|---|
FormWizard | This is a magic container that allows you to chain together multiple FormContent objects to automatically create a Wizard process. |
This tells us to show or not to show the form errors autmatically.
The user of the FormProcessor may want to deal with errors manually
Flag to let us know the form has been confirmed.
The form was processed and passed
the confirmation if any, and it was successfull ?
This is the FormValidation object
used to validate the form elements
This array holds the FORMtag
attributes for this form
This holds the FormContent Object that knows how to render the form.
The action that was taken
for the form
Flag to let us know if we should
render the form after it was successfully processed
This flag lets us know there were errors during processing or validating the form.
The constructor for the FormProcessor
This method lets us turn on/off the ability to do validation for the form
This method walks the FormContent's visible elements
and calls the validation function for the element
This is used to get the action that was processed by the form
This gets the current value of the flag that tells us to show form errors automatically or not.
This method returns an array of errors that happened in the form.
This method allows us to get access to the errors display object that is generated by the form content. This is the display object that is meant to be rendered directly.
If there are no errors. we will return NULL
This function is used to get the form action
This function is used to get the form enctype value
This function is used to get the form method
This function is used to get the form name
This function is used to get the form target
Gets the current value of the form tag's onsubmit value
This returns the flag that tells us that the form has errors during processing
This is used to test to see if the form action was processed succesfully.
This is usefull for external entities to determine if the form was processed, and it was successful.
This method is called to render the form's html
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 renders the error table and then the form with the fields
This renders the form
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 sets the flag that tells this class to automatically call the form contents form errors and display it or not
Sets the form action
Set a random attribute on the form tag.
You should know what you are doing as this might invalidate the output html with the W3C validator.
Sets the form enctype
This function is used to set the form method
This function is used to set the form name
This function is used to set the form target
Set the onsubmit attribute to the form NOTE: The FormContent child can automatically set this value depending on the FormElement children it contains.
This function turns on the ability to
render the form after the success of the action. Normally this feature is off
This adds all of the submitted data as
hidden form fields
This function adds the form content's
hidden form fields to the form automatically
this function builds the FORMtag object and its attributes.
This method is used to build any Javascript that is used by the form and/or the form elements used in the form.
This method initializes the FormContent during processing.
This method calls the FormContent
to let it do any data munging before the confirmation page is rendered
This function is responsible for processing the form action after validation, and form confirmation happens.
This method does the logic of
doing the form processing
This is used to set the action
submitted by the user
This flag sets the flag that tells if we successfully confirmed the form, and processed the action
This method adds the processor specific 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