From a7f3565f2adb73c3ade47dd5b79b733e031d5b8f Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 19 Dec 2020 13:15:15 +0100 Subject: [PATCH] Add `TTextAutoCompleteFormField` --- .../TTextAutoCompleteFormField.class.php | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 wcfsetup/install/files/lib/system/form/builder/field/TTextAutoCompleteFormField.class.php 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', + ]; + } +} -- 2.20.1