*}id="{@$field->getPrefixedId()}" {*
*}name="{@$field->getPrefixedId()}" {*
*}value="{if !$field->isI18n() || !$field->hasI18nValues()}{$field->getValue()}{/if}" {*
- *}class="long"{*
+ *}class="long" {*
+ *}maxlength="191"{*
*}{if $field->isAutofocused()} autofocus{/if}{*
*}{if $field->isRequired()} required{/if}{*
*}{if $field->isImmutable()} disabled{/if}{*
- *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{*
*}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
*}{if $field->getDocument()->isAjax()} data-dialog-submit-on-enter="true"{/if}{*
*}>
*}id="{@$field->getPrefixedId()}" {*
*}name="{@$field->getPrefixedId()}" {*
*}value="{if !$field->isI18n() || !$field->hasI18nValues()}{$field->getValue()}{/if}" {*
- *}class="long"{*
+ *}class="long" {*
+ *}maxlength="191"{*
*}{if $field->isAutofocused()} autofocus{/if}{*
*}{if $field->isRequired()} required{/if}{*
*}{if $field->isImmutable()} disabled{/if}{*
- *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{*
*}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
*}{if $field->getDocument()->isAjax()} data-dialog-submit-on-enter="true"{/if}{*
*}>
<?php
namespace wcf\system\form\builder\field;
use wcf\data\language\Language;
-use wcf\system\exception\UserInputException;
use wcf\system\form\builder\field\validation\FormFieldValidationError;
use wcf\system\language\LanguageFactory;
use wcf\util\UserUtil;
* @package WoltLabSuite\Core\System\Form\Builder\Field
* @since 5.2
*/
-class EmailFormField extends AbstractFormField implements IAutoFocusFormField, II18nFormField, IImmutableFormField, IMaximumLengthFormField, IPlaceholderFormField {
+class EmailFormField extends AbstractFormField implements IAutoFocusFormField, II18nFormField, IImmutableFormField, IPlaceholderFormField {
use TAutoFocusFormField;
use TImmutableFormField;
use TI18nFormField {
validate as protected i18nValidate;
}
- use TMaximumLengthFormField;
use TPlaceholderFormField;
/**
['language' => $language]
));
}
- else {
- $this->validateMaximumLength(
- $email,
- $language,
- 'wcf.form.field.email.error.maximumLength'
- );
- }
}
}