Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (&$form, $field, $type, $message, $fields=array()) | |
getErrorFields () | |
isValid () | |
Public Member Functions inherited from FormValidator | |
getField () | |
getFieldValue () | |
& | getForm () |
getMessage () | |
getType () | |
& | getValidator () |
isEmptyAndOptional () | |
Data Fields | |
$_errorFields | |
$_fields | |
Data Fields inherited from FormValidator | |
$_field | |
$_form | |
$_message | |
$_type | |
$_validator | |
Form validation check that checks an array of fields.
Definition at line 18 of file FormValidatorArray.inc.php.
FormValidatorArray::__construct | ( | & | $form, |
$field, | |||
$type, | |||
$message, | |||
$fields = array() |
|||
) |
Constructor.
$form | Form the associated form |
$field | string the name of the associated field |
$type | string the type of check, either "required" or "optional" |
$message | string the error message for validation failures (i18n key) |
$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 |
Reimplemented from FormValidator.
Definition at line 40 of file FormValidatorArray.inc.php.
FormValidatorArray::getErrorFields | ( | ) |
Get array of fields where an error occurred.
Definition at line 54 of file FormValidatorArray.inc.php.
References $_errorFields.
FormValidatorArray::isValid | ( | ) |
Reimplemented from FormValidator.
Definition at line 67 of file FormValidatorArray.inc.php.
References FormValidator\getField(), FormValidator\getFieldValue(), and FormValidator\getType().
array FormValidatorArray::$_errorFields |
Array of field names where an error occurred
Definition at line 30 of file FormValidatorArray.inc.php.
Referenced by getErrorFields().
array FormValidatorArray::$_fields |
Array of fields to check
Definition at line 24 of file FormValidatorArray.inc.php.