|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (&$form, $field, $type, $message, $userFunction, $additionalArguments=array(), $complementReturn=false, $messageArgs=array()) | |
| getMessage () | |
| isValid () | |
Public Member Functions inherited from FormValidator | |
| __construct (&$form, $field, $type, $message, $validator=null) | |
| getField () | |
| getFieldValue () | |
| & | getForm () |
| getType () | |
| & | getValidator () |
| isEmptyAndOptional () | |
Data Fields | |
| $_additionalArguments | |
| $_complementReturn | |
| $_userFunction | |
Data Fields inherited from FormValidator | |
| $_field | |
| $_form | |
| $_message | |
| $_type | |
| $_validator | |
Form validation check with a custom user function performing the validation check.
Definition at line 18 of file FormValidatorCustom.inc.php.
| FormValidatorCustom::__construct | ( | & | $form, |
| $field, | |||
| $type, | |||
| $message, | |||
| $userFunction, | |||
$additionalArguments = array(), |
|||
$complementReturn = false, |
|||
$messageArgs = array() |
|||
| ) |
Definition at line 53 of file FormValidatorCustom.inc.php.
| FormValidatorCustom::getMessage | ( | ) |
Reimplemented from FormValidator.
Definition at line 69 of file FormValidatorCustom.inc.php.
| FormValidatorCustom::isValid | ( | ) |
Reimplemented from FormValidator.
Definition at line 82 of file FormValidatorCustom.inc.php.
References FormValidator\getFieldValue(), and FormValidator\isEmptyAndOptional().
| array FormValidatorCustom::$_additionalArguments |
Additional arguments to pass to $userFunction
Definition at line 30 of file FormValidatorCustom.inc.php.
| boolean FormValidatorCustom::$_complementReturn |
If true, field is considered valid if user function returns false instead of true
Definition at line 36 of file FormValidatorCustom.inc.php.
| callable FormValidatorCustom::$_userFunction |
Custom validation function
Definition at line 24 of file FormValidatorCustom.inc.php.