
Public Member Functions | |
| FormValidatorRegExp (&$form, $field, $type, $message, $regExp) | |
| isValid () | |
Public Attributes | |
| $regExp | |
Definition at line 20 of file FormValidatorRegExp.inc.php.
| FormValidatorRegExp.FormValidatorRegExp | ( | &$ | form, | |
| $ | field, | |||
| $ | type, | |||
| $ | message, | |||
| $ | regExp | |||
| ) |
Constructor.
| $regExp | string the regular expression (PCRE form) |
Definition at line 30 of file FormValidatorRegExp.inc.php.
References FormValidator.$field, FormValidator.$form, FormValidator.$message, $regExp, and FormValidator.$type.
| FormValidatorRegExp.isValid | ( | ) |
Check if field value is valid. Value is valid if it is empty and optional or matches regular expression.
Reimplemented from FormValidator.
Definition at line 40 of file FormValidatorRegExp.inc.php.
References FormValidator.isEmptyAndOptional(), and String.regexp_match().
| FormValidatorRegExp.$regExp |
The regular expression to match against the field value
Definition at line 23 of file FormValidatorRegExp.inc.php.
Referenced by FormValidatorRegExp().
1.5.6