Open Journal Systems  3.3.0
Validator Class Reference
Inheritance diagram for Validator:
ValidatorControlledVocab ValidatorEmail ValidatorISSN ValidatorORCID ValidatorRegExp ValidatorUrl

Public Member Functions

 isValid ($value)
 

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 23 of file Validator.inc.php.

Member Function Documentation

◆ isValid()

Validator::isValid (   $value)

Check whether the given value is valid.

Parameters
$valuemixed the value to be checked
Returns
boolean

Reimplemented in ValidatorControlledVocab, ValidatorRegExp, ValidatorEmail, ValidatorISSN, ValidatorORCID, and ValidatorUrl.

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


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