
Public Member Functions | |
| FormValidatorArray (&$form, $field, $type, $message, $fields=array()) | |
| getErrorFields () | |
| isValid () | |
Definition at line 20 of file FormValidatorArray.inc.php.
| FormValidatorArray.FormValidatorArray | ( | &$ | form, | |
| $ | field, | |||
| $ | type, | |||
| $ | message, | |||
| $ | fields = array() | |||
| ) |
Constructor.
| $field | string field name specifying an array of fields, i.e. name[] | |
| $fields | array all subfields for each item in the array, i.e. name[][foo]. If empty it is assumed that name[] is a data field |
Definition at line 34 of file FormValidatorArray.inc.php.
References FormValidator.$field, FormValidator.$form, FormValidator.$message, and FormValidator.$type.
| FormValidatorArray.getErrorFields | ( | ) |
Get array of fields where an error occurred.
Definition at line 77 of file FormValidatorArray.inc.php.
| FormValidatorArray.isValid | ( | ) |
Check if field value is valid. Value is valid if it is empty and optional or is in the set of accepted values.
Reimplemented from FormValidator.
Definition at line 45 of file FormValidatorArray.inc.php.
References FormValidator.$field.
1.5.6