Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
FormValidatorLocale Class Reference
Inheritance diagram for FormValidatorLocale:
FormValidator FormValidatorLocaleEmail FormValidatorLocaleUrl

Public Member Functions

 FormValidatorLocale (&$form, $field, $type, $message, $requiredLocale=null, $validator=null)
 
 getFieldValue ()
 
 getMessage ()
 
- Public Member Functions inherited from FormValidator
 FormValidator (&$form, $field, $type, $message, $validator=null)
 
 getField ()
 
 getFieldValue ()
 
getForm ()
 
 getMessage ()
 
 getType ()
 
getValidator ()
 
 isEmptyAndOptional ()
 
 isValid ()
 
 setForm (&$form)
 

Detailed Description

Class to represent a form validation check for localized fields.

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

Member Function Documentation

FormValidatorLocale::FormValidatorLocale ( $form,
  $field,
  $type,
  $message,
  $requiredLocale = null,
  $validator = null 
)

Constructor.

Parameters
$formForm the associated form
$fieldstring the name of the associated field
$typestring the type of check, either "required" or "optional"
$messagestring the error message for validation failures (i18n key)
$validatorValidator the validator used to validate this form field (optional)
$requiredLocaleThe name of the required locale, i.e. en_US

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

References AppLocale\getPrimaryLocale().

FormValidatorLocale::getFieldValue ( )
See Also
FormValidator::getFieldValue()
Returns
mixed

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

References FormValidator\getField(), and FormValidator\getForm().

FormValidatorLocale::getMessage ( )

Get the error message associated with a failed validation check.

See Also
FormValidator::getMessage()
Returns
string

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

References PKPLocale\getAllLocales(), and AppLocale\getPrimaryLocale().


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