|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (&$form, $field, $type, $message, $comparator, $length) | |
| getMessage () | |
| isValid () | |
Public Member Functions inherited from FormValidator | |
| __construct (&$form, $field, $type, $message, $validator=null) | |
| getField () | |
| getFieldValue () | |
| & | getForm () |
| getType () | |
| & | getValidator () |
| isEmptyAndOptional () | |
Data Fields | |
| $_comparator | |
| $_length | |
Data Fields inherited from FormValidator | |
| $_field | |
| $_form | |
| $_message | |
| $_type | |
| $_validator | |
Form validation check that checks if a field's length meets certain requirements.
Definition at line 18 of file FormValidatorLength.inc.php.
| FormValidatorLength::__construct | ( | & | $form, |
| $field, | |||
| $type, | |||
| $message, | |||
| $comparator, | |||
| $length | |||
| ) |
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) |
| $comparator | |
| $length |
Definition at line 41 of file FormValidatorLength.inc.php.
| FormValidatorLength::getMessage | ( | ) |
Reimplemented from FormValidator.
Definition at line 55 of file FormValidatorLength.inc.php.
| FormValidatorLength::isValid | ( | ) |
Reimplemented from FormValidator.
Definition at line 68 of file FormValidatorLength.inc.php.
References $_length, FormValidator\getFieldValue(), FormValidator\isEmptyAndOptional(), and PKPString\strlen().
| string FormValidatorLength::$_comparator |
comparator to use (== | != | < | > | <= | >= )
Definition at line 24 of file FormValidatorLength.inc.php.
| int FormValidatorLength::$_length |
length to compare with
Definition at line 30 of file FormValidatorLength.inc.php.
Referenced by isValid().