FormValidatorLocale Class Reference
[Form_validation]

Class to represent a form validation check for localized fields. More...

Inheritance diagram for FormValidatorLocale:

FormValidator

List of all members.

Public Member Functions

 getField ()
 getMessage ()
 isEmptyAndOptional ()
 isValid ()


Detailed Description

Class to represent a form validation check for localized fields.

Definition at line 18 of file FormValidatorLocale.inc.php.


Member Function Documentation

FormValidatorLocale.getField (  ) 

Get the field associated with the check.

Returns:
string

Reimplemented from FormValidator.

Definition at line 43 of file FormValidatorLocale.inc.php.

FormValidatorLocale.getMessage (  ) 

Get the error message associated with a failed validation check.

Returns:
string

Reimplemented from FormValidator.

Definition at line 51 of file FormValidatorLocale.inc.php.

References Locale.getAllLocales(), and Locale.getPrimaryLocale().

FormValidatorLocale.isEmptyAndOptional (  ) 

Check if field value is empty and optional.

Returns:
boolean

Reimplemented from FormValidator.

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

FormValidatorLocale.isValid (  ) 

Check if field value is valid. Default check is that field is either optional or not empty for the primary locale.

Returns:
boolean

Reimplemented from FormValidator.

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

References Locale.getPrimaryLocale().


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