Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
Validator Class Reference
Inheritance diagram for Validator:
ValidatorControlledVocab ValidatorRegExp ValidatorDate ValidatorEmail ValidatorISSN ValidatorORCID ValidatorUri ValidatorUrl

Public Member Functions

 isValid ($value)
 
 Validator ()
 

Detailed Description

Abstract class that represents a validation check. This class and its sub-classes can be used outside a form validation context which enables re-use of complex validation code.

Definition at line 22 of file Validator.inc.php.

Member Function Documentation

Validator::isValid (   $value)

Check whether the given value is valid.

Parameters
$valuemixed the value to be checked
Returns
boolean

Definition at line 34 of file Validator.inc.php.

Validator::Validator ( )

Constructor.

Definition at line 26 of file Validator.inc.php.


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