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

 $_requiredLocale
 
- Public Attributes inherited from FormValidator
 $_field
 
 $_form
 
 $_message
 
 $_type
 
 $_validator
 

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 32 of file FormValidatorLocale.inc.php.

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

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

References $_requiredLocale.

FormValidatorLocale::getMessage ( )

Get the error message associated with a failed validation check.

See Also
FormValidator::getMessage()
Returns
string

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

Member Data Documentation

string FormValidatorLocale::$_requiredLocale

Symbolic name of the locale to require

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

Referenced by getFieldValue().


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