FormValidatorInSet Class Reference
[Form_validation]

Form validation check that checks if value is within a certain set. More...

Inheritance diagram for FormValidatorInSet:

FormValidator

List of all members.

Public Member Functions

 FormValidatorInSet (&$form, $field, $type, $message, $acceptedValues)
 isValid ()

Public Attributes

 $acceptedValues


Detailed Description

Form validation check that checks if value is within a certain set.

Definition at line 20 of file FormValidatorInSet.inc.php.


Member Function Documentation

FormValidatorInSet.FormValidatorInSet ( &$  form,
field,
type,
message,
acceptedValues 
)

Constructor.

See also:
FormValidator.FormValidator()
Parameters:
$acceptedValues array all possible accepted values

Definition at line 30 of file FormValidatorInSet.inc.php.

References $acceptedValues, FormValidator.$field, FormValidator.$form, FormValidator.$message, and FormValidator.$type.

FormValidatorInSet.isValid (  ) 

Check if field value is valid. Value is valid if it is empty and optional or is in the set of accepted values.

Returns:
boolean

Reimplemented from FormValidator.

Definition at line 40 of file FormValidatorInSet.inc.php.

References FormValidator.isEmptyAndOptional().


Member Data Documentation

FormValidatorInSet.$acceptedValues

Array of all values accepted as valid

Definition at line 23 of file FormValidatorInSet.inc.php.

Referenced by FormValidatorInSet().


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

Generated on Mon Jul 14 10:55:42 2008 for Open Journal Systems by  doxygen 1.5.6