Supports multistep forms
This is the code documentation for the SproutCMS project
Search documentation |
class MultiStepFormControllerSupports multistep forms
Variables
Functions
protected buildUrlstring $MultiStepFormController->buildUrl ( int $step [, bool $include_first ] ); Builds a URL to the form at a particular step protected checkStepvoid $MultiStepFormController->checkStep ( mixed $session , mixed $step ); Check the user has access to a step public completevoid $MultiStepFormController->complete ( ); Display the thanks message after the process has been completed protected firstStepint $MultiStepFormController->firstStep ( ); Gets the number (should be 0 or 1) of first step of the process protected formView $MultiStepFormController->form ( [ int $step ] ); The method used to drive the forms at each step This should be called by the entry function of the subclass controller protected getSessionarray $MultiStepFormController->getSession ( ); Instantiate the session and make sure the session key is useable protected savevoid $MultiStepFormController->save ( ); Do any final preparation / data massaging; then call saveData and finally redirect. This should generally be overridden. protected saveDatanull|int $MultiStepFormController->saveData ( string $table , array $sub_tables , array $extra_fields ); Save the data, e.g. into a database, after successful validation at the final step protected submitvoid $MultiStepFormController->submit ( int $step ); The method used to drive the form submissions at each step This should be called by the submit function of the subclass controller protected validatevoid $MultiStepFormController->validate ( int &$step , array $reqd , array $rules [, Validator $valid ] ); This function does not have a description |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|