|
eZ Publish
[4.2]
|
Input validation using regexps. More...
Inheritance diagram for eZRegExpValidator:
Collaboration diagram for eZRegExpValidator:Public Member Functions | |
| eZRegExpValidator ($rule=null) | |
| fixup ($text) | |
| setRegExpRule ($rule) | |
| validate ($text) | |
Public Attributes | |
| $RegExpRule | |
Input validation using regexps.
Definition at line 40 of file ezregexpvalidator.php.
| eZRegExpValidator::eZRegExpValidator | ( | $ | rule = null | ) |
Definition at line 42 of file ezregexpvalidator.php.
Referenced by eZFloatValidator\eZFloatValidator(), and eZIntegerValidator\eZIntegerValidator().
| eZRegExpValidator::fixup | ( | $ | text | ) |
Tries to fix the text $text which was previously marked as eZInputValidator::STATE_INTERMEDIATE so that it can be seen as eZInputValidator::STATE_ACCEPTED.
Reimplemented from eZInputValidator.
Reimplemented in eZIntegerValidator, and eZFloatValidator.
Definition at line 66 of file ezregexpvalidator.php.
| eZRegExpValidator::setRegExpRule | ( | $ | rule | ) |
Definition at line 48 of file ezregexpvalidator.php.
| eZRegExpValidator::validate | ( | $ | text | ) |
Tries to validate to the text $text and returns one of the validator states eZInputValidator::STATE_ACCEPTED, eZInputValidator::STATE_INTERMEDIATE or eZInputValidator::STATE_INVALID. This returns eZInputValidator::STATE_ACCEPTED as default and must be reimplemented in real valiators.
Reimplemented from eZInputValidator.
Reimplemented in eZIntegerValidator, and eZFloatValidator.
Definition at line 53 of file ezregexpvalidator.php.
| eZRegExpValidator::$RegExpRule |
Definition at line 82 of file ezregexpvalidator.php.