From: Matthias Schmidt Date: Sat, 19 Dec 2020 12:15:15 +0000 (+0100) Subject: Add `TTextAutoCompleteFormField` X-Git-Tag: 5.4.0_Alpha_1~521^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7f3565f2adb73c3ade47dd5b79b733e031d5b8f;p=GitHub%2FWoltLab%2FWCF.git Add `TTextAutoCompleteFormField` --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/TTextAutoCompleteFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/TTextAutoCompleteFormField.class.php new file mode 100644 index 0000000000..e712986386 --- /dev/null +++ b/wcfsetup/install/files/lib/system/form/builder/field/TTextAutoCompleteFormField.class.php @@ -0,0 +1,60 @@ + + * @package WoltLabSuite\Core\System\Form\Builder\Field + * @since 5.4 + */ +trait TTextAutoCompleteFormField { + use TAutoCompleteFormField; + + /** + * @inerhitDoc + */ + protected function getValidAutoCompleteTokens(): array { + return [ + 'name', + 'honorific-prefix', + 'given-name', + 'additional-name', + 'family-name', + 'honorific-suffix', + 'nickname', + 'organization-title', + 'organization', + 'address-line1', + 'address-line2', + 'address-line3', + 'address-level4', + 'address-level3', + 'address-level3', + 'address-level2', + 'address-level1', + 'country', + 'country-name', + 'postal-code', + 'cc-name', + 'cc-given-name', + 'cc-additional-name', + 'cc-family-name', + 'cc-number', + 'cc-csc', + 'cc-type', + 'transaction-currency', + 'language', + 'sex', + 'tel-country-code', + 'tel-national', + 'tel-area-code', + 'tel-local', + 'tel-local-prefix', + 'tel-local-suffix', + 'tel-extension', + ]; + } +}