Open Journal Systems  3.3.0
ValidatorRegExp Class Reference
Inheritance diagram for ValidatorRegExp:
Validator

Public Member Functions

 __construct ($regExp)
 
 isValid ($value)
 

Data Fields

 $_regExp
 

Detailed Description

Validation check using a regular expression.

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

Constructor & Destructor Documentation

◆ __construct()

ValidatorRegExp::__construct (   $regExp)

Constructor.

Parameters
$regExpstring the regular expression (PCRE form)

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

Member Function Documentation

◆ isValid()

ValidatorRegExp::isValid (   $value)

Check whether the given value is valid.

Parameters
$valuemixed the value to be checked
Returns
boolean

Reimplemented from Validator.

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

References ValidatorFactory\make().

Field Documentation

◆ $_regExp

The ValidatorRegExp::$_regExp

regular expression to match against the field value

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


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