Open Monograph Press  1.1
 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 ()

Public Attributes

- Public Attributes inherited from FormValidator

Detailed Description

Class to represent a form validation check for localized fields.

Definition at line 16 of file

Member Function Documentation

FormValidatorLocale::FormValidatorLocale ( $form,
  $requiredLocale = null,
  $validator = null 


$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 32 of file

FormValidatorLocale::getFieldValue ( )
See Also

Definition at line 68 of file

References $_requiredLocale.

FormValidatorLocale::getMessage ( )

Get the error message associated with a failed validation check.

See Also

Definition at line 56 of file

Member Data Documentation

string FormValidatorLocale::$_requiredLocale

Symbolic name of the locale to require

Definition at line 21 of file

Referenced by getFieldValue().

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