Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
ValidatorDate Class Reference
Inheritance diagram for ValidatorDate:
ValidatorRegExp Validator

Public Member Functions

 getRegexp ($dateFormat=DATE_FORMAT_ISO)
 
 isValid ($value)
 
 ValidatorDate ($dateFormat=DATE_FORMAT_ISO)
 
- Public Member Functions inherited from ValidatorRegExp
 getMatches ()
 
 isValid ($value)
 
 ValidatorRegExp ($regExp)
 
- Public Member Functions inherited from Validator
 isValid ($value)
 
 Validator ()
 

Detailed Description

Validation check for email addresses.

See Also
Validator

Definition at line 21 of file ValidatorDate.inc.php.

Member Function Documentation

ValidatorDate::getRegexp (   $dateFormat = DATE_FORMAT_ISO)

Return the regex for a date check. This can be called statically.

Parameters
$dateFormatinteger one of the DATE_FORMAT_* ids.
Returns
string

Definition at line 67 of file ValidatorDate.inc.php.

Referenced by ValidatorDate().

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

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

References ValidatorRegExp\getMatches().

ValidatorDate::ValidatorDate (   $dateFormat = DATE_FORMAT_ISO)

Constructor.

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

References getRegexp().


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