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

 $_matches
 
 $_regExp
 

Detailed Description

Validation check using a regular expression.

Definition at line 18 of file ValidatorRegExp.inc.php.

Member Function Documentation

ValidatorRegExp::getMatches ( )

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

Definition at line 60 of file ValidatorRegExp.inc.php.

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

ValidatorRegExp::isValid (   $value)
See Also
Validator::isValid()
Parameters
$valuemixed
Returns
boolean

Definition at line 49 of file ValidatorRegExp.inc.php.

References $_matches.

ValidatorRegExp::ValidatorRegExp (   $regExp)

Constructor.

Parameters
$regExpstring the regular expression (PCRE form)

Definition at line 36 of file ValidatorRegExp.inc.php.

References String\regexp_match_get().

Member Data Documentation

The ValidatorRegExp::$_matches

matches for further (optional) processing by subclasses

Definition at line 30 of file ValidatorRegExp.inc.php.

Referenced by isValid().

The ValidatorRegExp::$_regExp

regular expression to match against the field value

Definition at line 24 of file ValidatorRegExp.inc.php.


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