Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
ValidatorRegExp Class Reference
Inheritance diagram for ValidatorRegExp:
Validator ValidatorDate ValidatorEmail ValidatorISSN ValidatorUri ValidatorUrl

Public Member Functions

 getMatches ()
 isValid ($value)
 ValidatorRegExp ($regExp)
- Public Member Functions inherited from Validator
 isValid ($value)
 Validator ()

Public Attributes


Detailed Description

Validation check using a regular expression.

Definition at line 18 of file

Member Function Documentation

ValidatorRegExp::getMatches ( )

Returns the reg-ex matches (if any) after isValid() was called.

Definition at line 60 of file

Referenced by ValidatorISSN\isValid(), ValidatorUri\isValid(), and ValidatorDate\isValid().

ValidatorRegExp::isValid (   $value)
See Also

Definition at line 49 of file

References $_matches.

ValidatorRegExp::ValidatorRegExp (   $regExp)


$regExpstring the regular expression (PCRE form)

Definition at line 36 of file

References String\regexp_match_get().

Member Data Documentation

The ValidatorRegExp::$_matches

matches for further (optional) processing by subclasses

Definition at line 30 of file

Referenced by isValid().

The ValidatorRegExp::$_regExp

regular expression to match against the field value

Definition at line 24 of file

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