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

Public Member Functions

 __construct ($symbolic, $assocType, $assocId)
 
 isValid ($value)
 

Data Fields

 $_acceptedValues
 

Detailed Description

Validation check that checks if value is within a certain set retrieved from the database.

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

Constructor & Destructor Documentation

◆ __construct()

ValidatorControlledVocab::__construct (   $symbolic,
  $assocType,
  $assocId 
)

Constructor.

Parameters
$symbolicstring
$assocTypeint
$assocIdint

Definition at line 32 of file ValidatorControlledVocab.inc.php.

References DAORegistry\getDAO().

Member Function Documentation

◆ isValid()

ValidatorControlledVocab::isValid (   $value)
See also
Validator::isValid() Value is valid if it is empty and optional or is in the set of accepted values.
Parameters
$valuemixed
Returns
boolean

Reimplemented from Validator.

Definition at line 49 of file ValidatorControlledVocab.inc.php.

Field Documentation

◆ $_acceptedValues

array ValidatorControlledVocab::$_acceptedValues

Definition at line 24 of file ValidatorControlledVocab.inc.php.


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