$allow_post_values
$allow_post_values :
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.
string | $record_id | The value of the 'record_id' attribute from the e:function tag. |
An array of key-value pairs containg the values of the form fields.
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.
array | $data | Any array of data passed to the app::validate_form() method. Used |