/** * Constructor. * @param $form Form the associated form * @param $field string the name of the associated field * @param $type string the type of check, either "required" or "optional" * @param $message string the error message for validation failures (i18n key) */ function FormValidatorLocaleEmail(&$form, $field, $type, $message) { $validator = new ValidatorEmail(); parent::FormValidator($form, $field, $type, $message, $validator); }