eZRegExpValidator Class Reference

Input validation using regexps. More...

Inheritance diagram for eZRegExpValidator:

eZInputValidator eZFloatValidator eZIntegerValidator List of all members.

Public Methods

 validate ($text)

Public Attributes

 RegExpRule
 \privatesection


Detailed Description

Input validation using regexps.

Definition at line ezregexpvalidator.php.


Member Function Documentation

eZRegExpValidator::validate   text
 

Tries to validate to the text $text and returns one of the validator states EZ_INPUT_VALIDATOR_STATE_ACCEPTED, EZ_INPUT_VALIDATOR_STATE_INTERMEDIATE or EZ_INPUT_VALIDATOR_STATE_INVALID. This returns EZ_INPUT_VALIDATOR_STATE_ACCEPTED as default and must be reimplemented in real valiators.

Reimplemented from eZInputValidator.

Reimplemented in eZIntegerValidator.

Definition at line ezregexpvalidator.php.

References RegExpRule.

Referenced by eZIntegerValidator::validate(), and eZFloatValidator::validate().


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

Exponential copyright © copyright © 1998-2025 Exponential