FormValidatorArray Class Reference
[Form_validation]

Form validation check that checks an array of fields. More...

Inheritance diagram for FormValidatorArray:

FormValidator

List of all members.

Public Member Functions

 FormValidatorArray (&$form, $field, $type, $message, $fields=array())
 getErrorFields ()
 isValid ()


Detailed Description

Form validation check that checks an array of fields.

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


Member Function Documentation

FormValidatorArray.FormValidatorArray ( &$  form,
field,
type,
message,
fields = array() 
)

Constructor.

See also:
FormValidator.FormValidator()
Parameters:
$field string field name specifying an array of fields, i.e. name[]
$fields array all subfields for each item in the array, i.e. name[][foo]. If empty it is assumed that name[] is a data field

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

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

FormValidatorArray.getErrorFields (  ) 

Get array of fields where an error occurred.

Returns:
array

Definition at line 77 of file FormValidatorArray.inc.php.

FormValidatorArray.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 45 of file FormValidatorArray.inc.php.

References FormValidator.$field.


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