class UserDefinedForm_Controller extends Page_Controller (View source)

Controller for the UserDefinedForm page type.

Properties

Methods

public
init()

No description

public
array
index()

Using $UserDefinedForm in the Content area of the page shows where the form should be rendered into. If it does not exist then default back to $Form.

public
int
ping()

Keep the session alive for the user.

public
Forms
Form()

Get the form for the page. Form can be modified by calling updateForm() on a UserDefinedForm extension.

public
void
generateConditionalJavascript()

Generate the javascript for the conditional field show / hiding logic.

public
Redirection
process(array $data, Form $form)

Process the form that is submitted through the site

public
finished()

This action handles rendering the "finished" message, which is customizable by editing the ReceivedFormSubmission template.

protected
string
buildWatchJS(array $watch)

Outputs the required JS from the $watch input

Details

init()

No description

array index()

Using $UserDefinedForm in the Content area of the page shows where the form should be rendered into. If it does not exist then default back to $Form.

Return Value

array

int ping()

Keep the session alive for the user.

Return Value

int

Forms Form()

Get the form for the page. Form can be modified by calling updateForm() on a UserDefinedForm extension.

Return Value

Forms

void generateConditionalJavascript()

Generate the javascript for the conditional field show / hiding logic.

Return Value

void

Redirection process(array $data, Form $form)

Process the form that is submitted through the site

{\UserForm::validate()} for validation step prior to processing

Parameters

array $data
Form $form

Return Value

Redirection

ViewableData finished()

This action handles rendering the "finished" message, which is customizable by editing the ReceivedFormSubmission template.

Return Value

ViewableData

protected string buildWatchJS(array $watch)

Outputs the required JS from the $watch input

Parameters

array $watch

Return Value

string