|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (&$form, $field, $type, $message, $requiredLocale=null, $validator=null) | |
| getFieldValue () | |
| getMessage () | |
Public Member Functions inherited from FormValidator | |
| __construct (&$form, $field, $type, $message, $validator=null) | |
| getField () | |
| & | getForm () |
| getType () | |
| & | getValidator () |
| isEmptyAndOptional () | |
| isValid () | |
Data Fields | |
| $_requiredLocale | |
Data Fields inherited from FormValidator | |
| $_field | |
| $_form | |
| $_message | |
| $_type | |
| $_validator | |
Class to represent a form validation check for localized fields.
Definition at line 16 of file FormValidatorLocale.inc.php.
| FormValidatorLocale::__construct | ( | & | $form, |
| $field, | |||
| $type, | |||
| $message, | |||
$requiredLocale = null, |
|||
$validator = null |
|||
| ) |
Constructor.
| $form | Form the associated form |
| $field | string the name of the associated field |
| $type | string the type of check, either "required" or "optional" |
| $message | string the error message for validation failures (i18n key) |
| $validator | Validator the validator used to validate this form field (optional) |
| $requiredLocale | The name of the required locale, i.e. en_US |
Definition at line 32 of file FormValidatorLocale.inc.php.
References AppLocale\getPrimaryLocale().
| FormValidatorLocale::getFieldValue | ( | ) |
Reimplemented from FormValidator.
Definition at line 58 of file FormValidatorLocale.inc.php.
References $_requiredLocale, FormValidator\getField(), and FormValidator\getForm().
| FormValidatorLocale::getMessage | ( | ) |
Get the error message associated with a failed validation check.
Reimplemented from FormValidator.
Definition at line 46 of file FormValidatorLocale.inc.php.
References $_requiredLocale, and PKPLocale\getAllLocales().
| string FormValidatorLocale::$_requiredLocale |
Symbolic name of the locale to require
Definition at line 21 of file FormValidatorLocale.inc.php.
Referenced by getFieldValue(), and getMessage().