\EditableUserDefinedForm_Controller
Synopsis
class EditableUserDefinedForm_Controller
extends UserDefinedForm_Controller
{
- // members
- private static array $allowed_actions = ;
- protected $submission = NULL;
- protected boolean $readonly = false;
- protected array $formValues = ;
- // methods
- public void init()
- public void index()
- public String resume()
- public void view()
- public void printpdf()
- public void Form()
- public String storesubmission()
- public void previewsubmission()
- public void previewpdfsubmission()
- protected void saveSubmission()
- public void cancelsubmission()
- public Redirection process()
- protected void processSubmission()
Hierarchy
Extends
- UserDefinedForm_Controller
Members
private
- $allowed_actions
protected
- $formValues
- $readonly
- $submission
Methods
protected
- processSubmission() — Do the dirty work of processing the form submission and saving it if necessary
- saveSubmission() — Encapsulation of logic needed to save data into the form, usable by any action that needs to save the data before forwarding to somewhere else, whether it be 'save', 'viewpdf', etc
public
- Form()
- cancelsubmission() — Called to cancel the submission of a form
- index() — If this form is configured to load an existing draft, do so here
- init()
- previewpdfsubmission()
- previewsubmission()
- printpdf() — This creates a PDF of the created form for the user to download
- process() — Need to override the whole process method to be able to catch the fact that we might be editing a resumed entry
- resume() — Action called when you want to edit an existing form submission
- storesubmission() — Save a form submission as "Saved" but not yet completely submitted.
- view() — This provides a mechanism to view the form on the frontend in a read-only manner