Creates a new FormField object and adds it to the internal field array.
FormField
createField
(
string $text,
string $id, [
string $type =
'text'])
-
string
$text: The display text or field caption
-
string
$id: The form element id or name for processing
-
string
$type: The form element type such as text, email, etc.
Creates an array from incoming data by extracting only the items which belong to the specified form.
array
loadFormItems
(
array $data,
Form $form)
-
array
$data: Raw input
-
Form
$form: Form object to filter by
Generates the form's output code for display to the end user. Uses the supplied painter object or a DefaultFormPainter object if nothing is supplied.
-
FormPainter
$painter: The object to output with (defaults to DefaultFormPainter)
Validates incoming form data.
bool
validate
(
array $data,
Form $form,
mixed &$problemField)
-
array
$data: The incoming data
-
Form
$form: The form object to reference these data by