eZ Publish  [4.2]
eZRegExpValidator Class Reference

Input validation using regexps. More...

+ Inheritance diagram for eZRegExpValidator:
+ Collaboration diagram for eZRegExpValidator:

List of all members.

Public Member Functions

 eZRegExpValidator ($rule=null)
 fixup ($text)
 setRegExpRule ($rule)
 validate ($text)

Public Attributes

 $RegExpRule

Detailed Description

Input validation using regexps.

Definition at line 40 of file ezregexpvalidator.php.


Member Function Documentation

eZRegExpValidator::eZRegExpValidator ( rule = null)
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.


Member Data Documentation

eZRegExpValidator::$RegExpRule

Definition at line 82 of file ezregexpvalidator.php.


The documentation for this class was generated from the following file: