\apex\users\formgroup

Summary

Methods
Properties
Constants
get_fields()
get_record()
validate()
$allow_post_values
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$allow_post_values

$allow_post_values : 

Type

Methods

get_fields()

get_fields(array  $data = array()) : array

Defines the form fields included within the HTML form.

Parameters

array $data

An array of all attributes specified within the e:function tag that called the form.

Returns

array —

Keys of the array are the names of the form fields.

get_record()

get_record(string  $record_id) : array

Get record from database.

Gathers the necessary row from the database for a specific record ID, and is used to populate the form fields. Used when modifying a record.

Parameters

string $record_id

The value of the 'record_id' attribute from the e:function tag.

Returns

array —

An array of key-value pairs containg the values of the form fields.

validate()

validate(array  $data = array()) 

Perform additional form validation.

On top of the standard form validation checks such as required fields, data types, min / max length, and so on, you can also perform additional validation for this specific form via this method. Simply add the needed error callouts via the template->add_callout() method for any validation errors.

Parameters

array $data

Any array of data passed to the app::validate_form() method. Used