Open Journal Systems  2.4.3
 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 ()
 

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 54 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 43 of file ValidatorRegExp.inc.php.

References String\regexp_match_get().

ValidatorRegExp::ValidatorRegExp (   $regExp)

Constructor.

Parameters
$regExpstring the regular expression (PCRE form)

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


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