3 <html lang=
"en" class=
"no-js">
7 <meta name=
"viewport" content=
"width=device-width,initial-scale=1">
11 <link rel=
"canonical" href=
"https://docs.woltlab.com/6.0/php/api/form_builder/form_fields/">
14 <link rel=
"prev" href=
"../structure/">
17 <link rel=
"next" href=
"../validation_data/">
19 <link rel=
"icon" href=
"../../../../assets/default.favicon.ico">
20 <meta name=
"generator" content=
"mkdocs-1.4.2, mkdocs-material-9.0.15">
24 <title>Fields - WoltLab Suite Documentation
</title>
28 <link rel=
"stylesheet" href=
"../../../../assets/stylesheets/main.113286f1.min.css">
31 <link rel=
"stylesheet" href=
"../../../../assets/stylesheets/palette.a0c5b2b5.min.css">
41 <link rel=
"stylesheet" href=
"../../../../stylesheets/extra.css">
43 <script>__md_scope=new URL(
"../../../..",location),__md_hash=e=
>[...e].reduce((e,_)=
>(e<
<5)-e+_.charCodeAt(
0),
0),__md_get=(e,_=localStorage,t=__md_scope)=
>JSON.parse(_.getItem(t.pathname+
"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=
>{try{t.setItem(a.pathname+
"."+e,JSON.stringify(_))}catch(e){}}
</script>
58 <body dir=
"ltr" data-md-color-scheme=
"default" data-md-color-primary=
"teal" data-md-color-accent=
"">
62 <input class=
"md-toggle" data-md-toggle=
"drawer" type=
"checkbox" id=
"__drawer" autocomplete=
"off">
63 <input class=
"md-toggle" data-md-toggle=
"search" type=
"checkbox" id=
"__search" autocomplete=
"off">
64 <label class=
"md-overlay" for=
"__drawer"></label>
65 <div data-md-component=
"skip">
68 <a href=
"#form-builder-fields" class=
"md-skip">
73 <div data-md-component=
"announce">
75 <aside class=
"md-banner">
76 <div class=
"md-banner__inner md-grid md-typeset">
79 <a href=
"https://www.woltlab.com">Back to
<strong>woltlab.com
</strong></a>
87 <div data-md-color-scheme=
"default" data-md-component=
"outdated" hidden
>
94 <header class=
"md-header" data-md-component=
"header">
95 <nav class=
"md-header__inner md-grid" aria-label=
"Header">
96 <a href=
"../../../.." title=
"WoltLab Suite Documentation" class=
"md-header__button md-logo" aria-label=
"WoltLab Suite Documentation" data-md-component=
"logo">
98 <img src=
"../../../../assets/logo.png" alt=
"logo">
101 <label class=
"md-header__button md-icon" for=
"__drawer">
102 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
104 <div class=
"md-header__title" data-md-component=
"header-title">
105 <div class=
"md-header__ellipsis">
106 <div class=
"md-header__topic">
107 <span class=
"md-ellipsis">
108 WoltLab Suite Documentation
111 <div class=
"md-header__topic" data-md-component=
"header-topic">
112 <span class=
"md-ellipsis">
123 <label class=
"md-header__button md-icon" for=
"__search">
124 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
126 <div class=
"md-search" data-md-component=
"search" role=
"dialog">
127 <label class=
"md-search__overlay" for=
"__search"></label>
128 <div class=
"md-search__inner" role=
"search">
129 <form class=
"md-search__form" name=
"search">
130 <input type=
"text" class=
"md-search__input" name=
"query" aria-label=
"Search" placeholder=
"Search" autocapitalize=
"off" autocorrect=
"off" autocomplete=
"off" spellcheck=
"false" data-md-component=
"search-query" required
>
131 <label class=
"md-search__icon md-icon" for=
"__search">
132 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z"/></svg>
133 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
135 <nav class=
"md-search__options" aria-label=
"Search">
137 <button type=
"reset" class=
"md-search__icon md-icon" title=
"Clear" aria-label=
"Clear" tabindex=
"-1">
138 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 24 24"><path d=
"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"/></svg>
143 <div class=
"md-search__output">
144 <div class=
"md-search__scrollwrap" data-md-scrollfix
>
145 <div class=
"md-search-result" data-md-component=
"search-result">
146 <div class=
"md-search-result__meta">
149 <ol class=
"md-search-result__list" role=
"presentation"></ol>
157 <div class=
"md-header__source">
158 <a href=
"https://github.com/WoltLab/docs.woltlab.com/" title=
"Go to repository" class=
"md-source" data-md-component=
"source">
159 <div class=
"md-source__icon md-icon">
161 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 448 512"><!--! Font Awesome Free 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d=
"M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg>
163 <div class=
"md-source__repository">
173 <div class=
"md-container" data-md-component=
"container">
180 <main class=
"md-main" data-md-component=
"main">
181 <div class=
"md-main__inner md-grid">
185 <div class=
"md-sidebar md-sidebar--primary" data-md-component=
"sidebar" data-md-type=
"navigation" >
186 <div class=
"md-sidebar__scrollwrap">
187 <div class=
"md-sidebar__inner">
191 <nav class=
"md-nav md-nav--primary" aria-label=
"Navigation" data-md-level=
"0">
192 <label class=
"md-nav__title" for=
"__drawer">
193 <a href=
"../../../.." title=
"WoltLab Suite Documentation" class=
"md-nav__button md-logo" aria-label=
"WoltLab Suite Documentation" data-md-component=
"logo">
195 <img src=
"../../../../assets/logo.png" alt=
"logo">
198 WoltLab Suite Documentation
201 <div class=
"md-nav__source">
202 <a href=
"https://github.com/WoltLab/docs.woltlab.com/" title=
"Go to repository" class=
"md-source" data-md-component=
"source">
203 <div class=
"md-source__icon md-icon">
205 <svg xmlns=
"http://www.w3.org/2000/svg" viewBox=
"0 0 448 512"><!--! Font Awesome Free 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc.--><path d=
"M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg>
207 <div class=
"md-source__repository">
213 <ul class=
"md-nav__list" data-md-scrollfix
>
222 <li class=
"md-nav__item">
223 <a href=
"../../../../getting-started/" class=
"md-nav__link">
240 <li class=
"md-nav__item md-nav__item--active md-nav__item--nested">
245 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_2" checked
>
249 <label class=
"md-nav__link" for=
"__nav_2" id=
"__nav_2_label" tabindex=
"0">
251 <span class=
"md-nav__icon md-icon"></span>
254 <nav class=
"md-nav" data-md-level=
"1" aria-labelledby=
"__nav_2_label" aria-expanded=
"true">
255 <label class=
"md-nav__title" for=
"__nav_2">
256 <span class=
"md-nav__icon md-icon"></span>
259 <ul class=
"md-nav__list" data-md-scrollfix
>
266 <li class=
"md-nav__item">
267 <a href=
"../../../pages/" class=
"md-nav__link">
280 <li class=
"md-nav__item">
281 <a href=
"../../../database-objects/" class=
"md-nav__link">
294 <li class=
"md-nav__item">
295 <a href=
"../../../database-access/" class=
"md-nav__link">
308 <li class=
"md-nav__item">
309 <a href=
"../../../exceptions/" class=
"md-nav__link">
325 <li class=
"md-nav__item md-nav__item--active md-nav__item--nested">
330 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_2_5" checked
>
334 <label class=
"md-nav__link" for=
"__nav_2_5" id=
"__nav_2_5_label" tabindex=
"0">
336 <span class=
"md-nav__icon md-icon"></span>
339 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_2_5_label" aria-expanded=
"true">
340 <label class=
"md-nav__title" for=
"__nav_2_5">
341 <span class=
"md-nav__icon md-icon"></span>
344 <ul class=
"md-nav__list" data-md-scrollfix
>
352 <li class=
"md-nav__item md-nav__item--nested">
357 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_2_5_1" >
361 <label class=
"md-nav__link" for=
"__nav_2_5_1" id=
"__nav_2_5_1_label" tabindex=
"0">
363 <span class=
"md-nav__icon md-icon"></span>
366 <nav class=
"md-nav" data-md-level=
"3" aria-labelledby=
"__nav_2_5_1_label" aria-expanded=
"false">
367 <label class=
"md-nav__title" for=
"__nav_2_5_1">
368 <span class=
"md-nav__icon md-icon"></span>
371 <ul class=
"md-nav__list" data-md-scrollfix
>
378 <li class=
"md-nav__item">
379 <a href=
"../../caches/" class=
"md-nav__link">
392 <li class=
"md-nav__item">
393 <a href=
"../../caches_persistent-caches/" class=
"md-nav__link">
406 <li class=
"md-nav__item">
407 <a href=
"../../caches_runtime-caches/" class=
"md-nav__link">
427 <li class=
"md-nav__item">
428 <a href=
"../../comments/" class=
"md-nav__link">
441 <li class=
"md-nav__item">
442 <a href=
"../../cronjobs/" class=
"md-nav__link">
455 <li class=
"md-nav__item">
456 <a href=
"../../events/" class=
"md-nav__link">
472 <li class=
"md-nav__item md-nav__item--active md-nav__item--nested">
477 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_2_5_5" checked
>
481 <label class=
"md-nav__link" for=
"__nav_2_5_5" id=
"__nav_2_5_5_label" tabindex=
"0">
483 <span class=
"md-nav__icon md-icon"></span>
486 <nav class=
"md-nav" data-md-level=
"3" aria-labelledby=
"__nav_2_5_5_label" aria-expanded=
"true">
487 <label class=
"md-nav__title" for=
"__nav_2_5_5">
488 <span class=
"md-nav__icon md-icon"></span>
491 <ul class=
"md-nav__list" data-md-scrollfix
>
498 <li class=
"md-nav__item">
499 <a href=
"../overview/" class=
"md-nav__link">
512 <li class=
"md-nav__item">
513 <a href=
"../structure/" class=
"md-nav__link">
528 <li class=
"md-nav__item md-nav__item--active">
530 <input class=
"md-nav__toggle md-toggle" type=
"checkbox" id=
"__toc">
536 <label class=
"md-nav__link md-nav__link--active" for=
"__toc">
538 <span class=
"md-nav__icon md-icon"></span>
541 <a href=
"./" class=
"md-nav__link md-nav__link--active">
547 <nav class=
"md-nav md-nav--secondary" aria-label=
"Table of contents">
554 <label class=
"md-nav__title" for=
"__toc">
555 <span class=
"md-nav__icon md-icon"></span>
558 <ul class=
"md-nav__list" data-md-component=
"toc" data-md-scrollfix
>
560 <li class=
"md-nav__item">
561 <a href=
"#abstract-form-fields" class=
"md-nav__link">
565 <nav class=
"md-nav" aria-label=
"Abstract Form Fields">
566 <ul class=
"md-nav__list">
568 <li class=
"md-nav__item">
569 <a href=
"#abstractformfield" class=
"md-nav__link">
575 <li class=
"md-nav__item">
576 <a href=
"#abstractnumericformfield" class=
"md-nav__link">
577 AbstractNumericFormField
582 <li class=
"md-nav__item">
583 <a href=
"#abstractformfielddecorator" class=
"md-nav__link">
584 AbstractFormFieldDecorator
594 <li class=
"md-nav__item">
595 <a href=
"#general-form-fields" class=
"md-nav__link">
599 <nav class=
"md-nav" aria-label=
"General Form Fields">
600 <ul class=
"md-nav__list">
602 <li class=
"md-nav__item">
603 <a href=
"#booleanformfield" class=
"md-nav__link">
609 <li class=
"md-nav__item">
610 <a href=
"#checkboxformfield" class=
"md-nav__link">
616 <li class=
"md-nav__item">
617 <a href=
"#classnameformfield" class=
"md-nav__link">
623 <li class=
"md-nav__item">
624 <a href=
"#dateformfield" class=
"md-nav__link">
630 <li class=
"md-nav__item">
631 <a href=
"#descriptionformfield" class=
"md-nav__link">
637 <li class=
"md-nav__item">
638 <a href=
"#emailformfield" class=
"md-nav__link">
644 <li class=
"md-nav__item">
645 <a href=
"#floatformfield" class=
"md-nav__link">
651 <li class=
"md-nav__item">
652 <a href=
"#hiddenformfield" class=
"md-nav__link">
658 <li class=
"md-nav__item">
659 <a href=
"#iconformfield" class=
"md-nav__link">
665 <li class=
"md-nav__item">
666 <a href=
"#integerformfield" class=
"md-nav__link">
672 <li class=
"md-nav__item">
673 <a href=
"#isdisabledformfield" class=
"md-nav__link">
679 <li class=
"md-nav__item">
680 <a href=
"#itemlistformfield" class=
"md-nav__link">
686 <li class=
"md-nav__item">
687 <a href=
"#multilinetextformfield" class=
"md-nav__link">
688 MultilineTextFormField
693 <li class=
"md-nav__item">
694 <a href=
"#multipleselectionformfield" class=
"md-nav__link">
695 MultipleSelectionFormField
700 <li class=
"md-nav__item">
701 <a href=
"#radiobuttonformfield" class=
"md-nav__link">
707 <li class=
"md-nav__item">
708 <a href=
"#ratingformfield" class=
"md-nav__link">
714 <li class=
"md-nav__item">
715 <a href=
"#showorderformfield" class=
"md-nav__link">
721 <li class=
"md-nav__item">
722 <a href=
"#singleselectionformfield" class=
"md-nav__link">
723 SingleSelectionFormField
728 <li class=
"md-nav__item">
729 <a href=
"#sortorderformfield" class=
"md-nav__link">
735 <li class=
"md-nav__item">
736 <a href=
"#textformfield" class=
"md-nav__link">
742 <li class=
"md-nav__item">
743 <a href=
"#titleformfield" class=
"md-nav__link">
749 <li class=
"md-nav__item">
750 <a href=
"#urlformfield" class=
"md-nav__link">
761 <li class=
"md-nav__item">
762 <a href=
"#specific-fields" class=
"md-nav__link">
766 <nav class=
"md-nav" aria-label=
"Specific Fields">
767 <ul class=
"md-nav__list">
769 <li class=
"md-nav__item">
770 <a href=
"#aclformfield" class=
"md-nav__link">
776 <li class=
"md-nav__item">
777 <a href=
"#buttonformfield" class=
"md-nav__link">
783 <li class=
"md-nav__item">
784 <a href=
"#captchaformfield" class=
"md-nav__link">
790 <li class=
"md-nav__item">
791 <a href=
"#colorformfield" class=
"md-nav__link">
797 <li class=
"md-nav__item">
798 <a href=
"#contentlanguageformfield" class=
"md-nav__link">
799 ContentLanguageFormField
804 <li class=
"md-nav__item">
805 <a href=
"#labelformfield" class=
"md-nav__link">
811 <li class=
"md-nav__item">
812 <a href=
"#optionformfield" class=
"md-nav__link">
818 <li class=
"md-nav__item">
819 <a href=
"#simpleaclformfield" class=
"md-nav__link">
825 <li class=
"md-nav__item">
826 <a href=
"#singlemediaselectionformfield" class=
"md-nav__link">
827 SingleMediaSelectionFormField
832 <li class=
"md-nav__item">
833 <a href=
"#tagformfield" class=
"md-nav__link">
839 <li class=
"md-nav__item">
840 <a href=
"#uploadformfield" class=
"md-nav__link">
844 <nav class=
"md-nav" aria-label=
"UploadFormField">
845 <ul class=
"md-nav__list">
847 <li class=
"md-nav__item">
848 <a href=
"#provide-value-from-database-object" class=
"md-nav__link">
849 Provide value from database object
854 <li class=
"md-nav__item">
855 <a href=
"#process-files" class=
"md-nav__link">
866 <li class=
"md-nav__item">
867 <a href=
"#userformfield" class=
"md-nav__link">
873 <li class=
"md-nav__item">
874 <a href=
"#userpasswordfield" class=
"md-nav__link">
880 <li class=
"md-nav__item">
881 <a href=
"#usergroupoptionformfield" class=
"md-nav__link">
882 UserGroupOptionFormField
887 <li class=
"md-nav__item">
888 <a href=
"#usernameformfield" class=
"md-nav__link">
899 <li class=
"md-nav__item">
900 <a href=
"#wysiwyg-form-container" class=
"md-nav__link">
901 Wysiwyg form container
904 <nav class=
"md-nav" aria-label=
"Wysiwyg form container">
905 <ul class=
"md-nav__list">
907 <li class=
"md-nav__item">
908 <a href=
"#wysiwygattachmentformfield" class=
"md-nav__link">
909 WysiwygAttachmentFormField
914 <li class=
"md-nav__item">
915 <a href=
"#wysiwygpollformcontainer" class=
"md-nav__link">
916 WysiwygPollFormContainer
921 <li class=
"md-nav__item">
922 <a href=
"#wysiwygsmileyformcontainer" class=
"md-nav__link">
923 WysiwygSmileyFormContainer
926 <nav class=
"md-nav" aria-label=
"WysiwygSmileyFormContainer">
927 <ul class=
"md-nav__list">
929 <li class=
"md-nav__item">
930 <a href=
"#wysiwygsmileyformnode" class=
"md-nav__link">
931 WysiwygSmileyFormNode
941 <li class=
"md-nav__item">
942 <a href=
"#example" class=
"md-nav__link">
948 <li class=
"md-nav__item">
949 <a href=
"#wysiwygformfield" class=
"md-nav__link">
955 <li class=
"md-nav__item">
956 <a href=
"#twysiwygformnode" class=
"md-nav__link">
967 <li class=
"md-nav__item">
968 <a href=
"#application-specific-form-fields" class=
"md-nav__link">
969 Application-Specific Form Fields
972 <nav class=
"md-nav" aria-label=
"Application-Specific Form Fields">
973 <ul class=
"md-nav__list">
975 <li class=
"md-nav__item">
976 <a href=
"#woltlab-suite-forum" class=
"md-nav__link">
980 <nav class=
"md-nav" aria-label=
"WoltLab Suite Forum">
981 <ul class=
"md-nav__list">
983 <li class=
"md-nav__item">
984 <a href=
"#multipleboardselectionformfield" class=
"md-nav__link">
985 MultipleBoardSelectionFormField
1000 <li class=
"md-nav__item">
1001 <a href=
"#single-use-form-fields" class=
"md-nav__link">
1002 Single-Use Form Fields
1005 <nav class=
"md-nav" aria-label=
"Single-Use Form Fields">
1006 <ul class=
"md-nav__list">
1008 <li class=
"md-nav__item">
1009 <a href=
"#bbcodeattributesformfield" class=
"md-nav__link">
1010 BBCodeAttributesFormField
1015 <li class=
"md-nav__item">
1016 <a href=
"#devtoolsprojectexcludedpackagesformfield" class=
"md-nav__link">
1017 DevtoolsProjectExcludedPackagesFormField
1022 <li class=
"md-nav__item">
1023 <a href=
"#devtoolsprojectinstructionsformfield" class=
"md-nav__link">
1024 DevtoolsProjectInstructionsFormField
1029 <li class=
"md-nav__item">
1030 <a href=
"#devtoolsprojectoptionalpackagesformfield" class=
"md-nav__link">
1031 DevtoolsProjectOptionalPackagesFormField
1036 <li class=
"md-nav__item">
1037 <a href=
"#devtoolsprojectrequiredpackagesformfield" class=
"md-nav__link">
1038 DevtoolsProjectRequiredPackagesFormField
1062 <li class=
"md-nav__item">
1063 <a href=
"../validation_data/" class=
"md-nav__link">
1076 <li class=
"md-nav__item">
1077 <a href=
"../dependencies/" class=
"md-nav__link">
1097 <li class=
"md-nav__item">
1098 <a href=
"../../package_installation_plugins/" class=
"md-nav__link">
1099 Package Installation Plugins
1111 <li class=
"md-nav__item">
1112 <a href=
"../../user_activity_points/" class=
"md-nav__link">
1113 User Activity Points
1125 <li class=
"md-nav__item">
1126 <a href=
"../../user_notifications/" class=
"md-nav__link">
1139 <li class=
"md-nav__item">
1140 <a href=
"../../sitemaps/" class=
"md-nav__link">
1160 <li class=
"md-nav__item">
1161 <a href=
"../../../code-style/" class=
"md-nav__link">
1174 <li class=
"md-nav__item">
1175 <a href=
"../../../apps/" class=
"md-nav__link">
1188 <li class=
"md-nav__item">
1189 <a href=
"../../../gdpr/" class=
"md-nav__link">
1211 <li class=
"md-nav__item md-nav__item--nested">
1216 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_3" >
1220 <label class=
"md-nav__link" for=
"__nav_3" id=
"__nav_3_label" tabindex=
"0">
1221 Languages, Templates & CSS
1222 <span class=
"md-nav__icon md-icon"></span>
1225 <nav class=
"md-nav" data-md-level=
"1" aria-labelledby=
"__nav_3_label" aria-expanded=
"false">
1226 <label class=
"md-nav__title" for=
"__nav_3">
1227 <span class=
"md-nav__icon md-icon"></span>
1228 Languages, Templates & CSS
1230 <ul class=
"md-nav__list" data-md-scrollfix
>
1237 <li class=
"md-nav__item">
1238 <a href=
"../../../../view/languages/" class=
"md-nav__link">
1251 <li class=
"md-nav__item">
1252 <a href=
"../../../../view/templates/" class=
"md-nav__link">
1265 <li class=
"md-nav__item">
1266 <a href=
"../../../../view/template-plugins/" class=
"md-nav__link">
1279 <li class=
"md-nav__item">
1280 <a href=
"../../../../view/css/" class=
"md-nav__link">
1302 <li class=
"md-nav__item md-nav__item--nested">
1307 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_4" >
1311 <label class=
"md-nav__link" for=
"__nav_4" id=
"__nav_4_label" tabindex=
"0">
1312 TypeScript and JavaScript API
1313 <span class=
"md-nav__icon md-icon"></span>
1316 <nav class=
"md-nav" data-md-level=
"1" aria-labelledby=
"__nav_4_label" aria-expanded=
"false">
1317 <label class=
"md-nav__title" for=
"__nav_4">
1318 <span class=
"md-nav__icon md-icon"></span>
1319 TypeScript and JavaScript API
1321 <ul class=
"md-nav__list" data-md-scrollfix
>
1328 <li class=
"md-nav__item">
1329 <a href=
"../../../../javascript/general-usage/" class=
"md-nav__link">
1342 <li class=
"md-nav__item">
1343 <a href=
"../../../../javascript/typescript/" class=
"md-nav__link">
1357 <li class=
"md-nav__item md-nav__item--nested">
1362 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_4_3" >
1366 <label class=
"md-nav__link" for=
"__nav_4_3" id=
"__nav_4_3_label" tabindex=
"0">
1368 <span class=
"md-nav__icon md-icon"></span>
1371 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_4_3_label" aria-expanded=
"false">
1372 <label class=
"md-nav__title" for=
"__nav_4_3">
1373 <span class=
"md-nav__icon md-icon"></span>
1376 <ul class=
"md-nav__list" data-md-scrollfix
>
1383 <li class=
"md-nav__item">
1384 <a href=
"../../../../javascript/components_confirmation/" class=
"md-nav__link">
1397 <li class=
"md-nav__item">
1398 <a href=
"../../../../javascript/components_dialog/" class=
"md-nav__link">
1411 <li class=
"md-nav__item">
1412 <a href=
"../../../../javascript/components_google_maps/" class=
"md-nav__link">
1425 <li class=
"md-nav__item">
1426 <a href=
"../../../../javascript/components_pagination/" class=
"md-nav__link">
1447 <li class=
"md-nav__item md-nav__item--nested">
1452 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_4_4" >
1456 <label class=
"md-nav__link" for=
"__nav_4_4" id=
"__nav_4_4_label" tabindex=
"0">
1458 <span class=
"md-nav__icon md-icon"></span>
1461 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_4_4_label" aria-expanded=
"false">
1462 <label class=
"md-nav__title" for=
"__nav_4_4">
1463 <span class=
"md-nav__icon md-icon"></span>
1466 <ul class=
"md-nav__list" data-md-scrollfix
>
1473 <li class=
"md-nav__item">
1474 <a href=
"../../../../javascript/new-api_writing-a-module/" class=
"md-nav__link">
1487 <li class=
"md-nav__item">
1488 <a href=
"../../../../javascript/new-api_core/" class=
"md-nav__link">
1501 <li class=
"md-nav__item">
1502 <a href=
"../../../../javascript/new-api_dom/" class=
"md-nav__link">
1515 <li class=
"md-nav__item">
1516 <a href=
"../../../../javascript/new-api_events/" class=
"md-nav__link">
1529 <li class=
"md-nav__item">
1530 <a href=
"../../../../javascript/new-api_ajax/" class=
"md-nav__link">
1543 <li class=
"md-nav__item">
1544 <a href=
"../../../../javascript/new-api_dialogs/" class=
"md-nav__link">
1557 <li class=
"md-nav__item">
1558 <a href=
"../../../../javascript/new-api_browser/" class=
"md-nav__link">
1559 Browser and Screen Sizes
1571 <li class=
"md-nav__item">
1572 <a href=
"../../../../javascript/new-api_ui/" class=
"md-nav__link">
1592 <li class=
"md-nav__item">
1593 <a href=
"../../../../javascript/legacy-api/" class=
"md-nav__link">
1606 <li class=
"md-nav__item">
1607 <a href=
"../../../../javascript/code-snippets/" class=
"md-nav__link">
1629 <li class=
"md-nav__item md-nav__item--nested">
1634 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_5" >
1638 <label class=
"md-nav__link" for=
"__nav_5" id=
"__nav_5_label" tabindex=
"0">
1640 <span class=
"md-nav__icon md-icon"></span>
1643 <nav class=
"md-nav" data-md-level=
"1" aria-labelledby=
"__nav_5_label" aria-expanded=
"false">
1644 <label class=
"md-nav__title" for=
"__nav_5">
1645 <span class=
"md-nav__icon md-icon"></span>
1648 <ul class=
"md-nav__list" data-md-scrollfix
>
1655 <li class=
"md-nav__item">
1656 <a href=
"../../../../package/package-xml/" class=
"md-nav__link">
1670 <li class=
"md-nav__item md-nav__item--nested">
1675 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_5_2" >
1679 <label class=
"md-nav__link" for=
"__nav_5_2" id=
"__nav_5_2_label" tabindex=
"0">
1681 <span class=
"md-nav__icon md-icon"></span>
1684 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_5_2_label" aria-expanded=
"false">
1685 <label class=
"md-nav__title" for=
"__nav_5_2">
1686 <span class=
"md-nav__icon md-icon"></span>
1689 <ul class=
"md-nav__list" data-md-scrollfix
>
1696 <li class=
"md-nav__item">
1697 <a href=
"../../../../package/pip/" class=
"md-nav__link">
1710 <li class=
"md-nav__item">
1711 <a href=
"../../../../package/pip/acl-option/" class=
"md-nav__link">
1724 <li class=
"md-nav__item">
1725 <a href=
"../../../../package/pip/acp-menu/" class=
"md-nav__link">
1738 <li class=
"md-nav__item">
1739 <a href=
"../../../../package/pip/acp-search-provider/" class=
"md-nav__link">
1752 <li class=
"md-nav__item">
1753 <a href=
"../../../../package/pip/acp-template/" class=
"md-nav__link">
1766 <li class=
"md-nav__item">
1767 <a href=
"../../../../package/pip/acp-template-delete/" class=
"md-nav__link">
1780 <li class=
"md-nav__item">
1781 <a href=
"../../../../package/pip/bbcode/" class=
"md-nav__link">
1794 <li class=
"md-nav__item">
1795 <a href=
"../../../../package/pip/box/" class=
"md-nav__link">
1808 <li class=
"md-nav__item">
1809 <a href=
"../../../../package/pip/clipboard-action/" class=
"md-nav__link">
1822 <li class=
"md-nav__item">
1823 <a href=
"../../../../package/pip/core-object/" class=
"md-nav__link">
1836 <li class=
"md-nav__item">
1837 <a href=
"../../../../package/pip/cronjob/" class=
"md-nav__link">
1850 <li class=
"md-nav__item">
1851 <a href=
"../../../../package/pip/database/" class=
"md-nav__link">
1864 <li class=
"md-nav__item">
1865 <a href=
"../../../../package/pip/event-listener/" class=
"md-nav__link">
1878 <li class=
"md-nav__item">
1879 <a href=
"../../../../package/pip/file/" class=
"md-nav__link">
1892 <li class=
"md-nav__item">
1893 <a href=
"../../../../package/pip/file-delete/" class=
"md-nav__link">
1906 <li class=
"md-nav__item">
1907 <a href=
"../../../../package/pip/language/" class=
"md-nav__link">
1920 <li class=
"md-nav__item">
1921 <a href=
"../../../../package/pip/media-provider/" class=
"md-nav__link">
1934 <li class=
"md-nav__item">
1935 <a href=
"../../../../package/pip/menu/" class=
"md-nav__link">
1948 <li class=
"md-nav__item">
1949 <a href=
"../../../../package/pip/menu-item/" class=
"md-nav__link">
1962 <li class=
"md-nav__item">
1963 <a href=
"../../../../package/pip/object-type/" class=
"md-nav__link">
1976 <li class=
"md-nav__item">
1977 <a href=
"../../../../package/pip/object-type-definition/" class=
"md-nav__link">
1978 objectTypeDefinition
1990 <li class=
"md-nav__item">
1991 <a href=
"../../../../package/pip/option/" class=
"md-nav__link">
2004 <li class=
"md-nav__item">
2005 <a href=
"../../../../package/pip/page/" class=
"md-nav__link">
2018 <li class=
"md-nav__item">
2019 <a href=
"../../../../package/pip/pip/" class=
"md-nav__link">
2032 <li class=
"md-nav__item">
2033 <a href=
"../../../../package/pip/script/" class=
"md-nav__link">
2046 <li class=
"md-nav__item">
2047 <a href=
"../../../../package/pip/smiley/" class=
"md-nav__link">
2060 <li class=
"md-nav__item">
2061 <a href=
"../../../../package/pip/sql/" class=
"md-nav__link">
2074 <li class=
"md-nav__item">
2075 <a href=
"../../../../package/pip/style/" class=
"md-nav__link">
2088 <li class=
"md-nav__item">
2089 <a href=
"../../../../package/pip/template/" class=
"md-nav__link">
2102 <li class=
"md-nav__item">
2103 <a href=
"../../../../package/pip/template-delete/" class=
"md-nav__link">
2116 <li class=
"md-nav__item">
2117 <a href=
"../../../../package/pip/template-listener/" class=
"md-nav__link">
2130 <li class=
"md-nav__item">
2131 <a href=
"../../../../package/pip/user-group-option/" class=
"md-nav__link">
2144 <li class=
"md-nav__item">
2145 <a href=
"../../../../package/pip/user-menu/" class=
"md-nav__link">
2158 <li class=
"md-nav__item">
2159 <a href=
"../../../../package/pip/user-notification-event/" class=
"md-nav__link">
2160 userNotificationEvent
2172 <li class=
"md-nav__item">
2173 <a href=
"../../../../package/pip/user-option/" class=
"md-nav__link">
2186 <li class=
"md-nav__item">
2187 <a href=
"../../../../package/pip/user-profile-menu/" class=
"md-nav__link">
2207 <li class=
"md-nav__item">
2208 <a href=
"../../../../package/database-php-api/" class=
"md-nav__link">
2230 <li class=
"md-nav__item md-nav__item--nested">
2235 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_6" >
2239 <label class=
"md-nav__link" for=
"__nav_6" id=
"__nav_6_label" tabindex=
"0">
2241 <span class=
"md-nav__icon md-icon"></span>
2244 <nav class=
"md-nav" data-md-level=
"1" aria-labelledby=
"__nav_6_label" aria-expanded=
"false">
2245 <label class=
"md-nav__title" for=
"__nav_6">
2246 <span class=
"md-nav__icon md-icon"></span>
2249 <ul class=
"md-nav__list" data-md-scrollfix
>
2257 <li class=
"md-nav__item md-nav__item--nested">
2262 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_6_1" >
2266 <label class=
"md-nav__link" for=
"__nav_6_1" id=
"__nav_6_1_label" tabindex=
"0">
2267 From WoltLab Suite
5.5
2268 <span class=
"md-nav__icon md-icon"></span>
2271 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_6_1_label" aria-expanded=
"false">
2272 <label class=
"md-nav__title" for=
"__nav_6_1">
2273 <span class=
"md-nav__icon md-icon"></span>
2274 From WoltLab Suite
5.5
2276 <ul class=
"md-nav__list" data-md-scrollfix
>
2283 <li class=
"md-nav__item">
2284 <a href=
"../../../../migration/wsc55/php/" class=
"md-nav__link">
2297 <li class=
"md-nav__item">
2298 <a href=
"../../../../migration/wsc55/javascript/" class=
"md-nav__link">
2299 TypeScript and JavaScript
2311 <li class=
"md-nav__item">
2312 <a href=
"../../../../migration/wsc55/templates/" class=
"md-nav__link">
2325 <li class=
"md-nav__item">
2326 <a href=
"../../../../migration/wsc55/icons/" class=
"md-nav__link">
2339 <li class=
"md-nav__item">
2340 <a href=
"../../../../migration/wsc55/dialogs/" class=
"md-nav__link">
2353 <li class=
"md-nav__item">
2354 <a href=
"../../../../migration/wsc55/libraries/" class=
"md-nav__link">
2355 Third Party Libraries
2367 <li class=
"md-nav__item">
2368 <a href=
"../../../../migration/wsc55/deprecations_removals/" class=
"md-nav__link">
2369 Deprecations and Removals
2389 <li class=
"md-nav__item md-nav__item--nested">
2394 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_6_2" >
2398 <label class=
"md-nav__link" for=
"__nav_6_2" id=
"__nav_6_2_label" tabindex=
"0">
2399 From WoltLab Suite
5.4
2400 <span class=
"md-nav__icon md-icon"></span>
2403 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_6_2_label" aria-expanded=
"false">
2404 <label class=
"md-nav__title" for=
"__nav_6_2">
2405 <span class=
"md-nav__icon md-icon"></span>
2406 From WoltLab Suite
5.4
2408 <ul class=
"md-nav__list" data-md-scrollfix
>
2415 <li class=
"md-nav__item">
2416 <a href=
"../../../../migration/wsc54/php/" class=
"md-nav__link">
2429 <li class=
"md-nav__item">
2430 <a href=
"../../../../migration/wsc54/javascript/" class=
"md-nav__link">
2431 TypeScript and JavaScript
2443 <li class=
"md-nav__item">
2444 <a href=
"../../../../migration/wsc54/templates/" class=
"md-nav__link">
2457 <li class=
"md-nav__item">
2458 <a href=
"../../../../migration/wsc54/libraries/" class=
"md-nav__link">
2459 Third Party Libraries
2471 <li class=
"md-nav__item">
2472 <a href=
"../../../../migration/wsc54/deprecations_removals/" class=
"md-nav__link">
2473 Deprecations and Removals
2493 <li class=
"md-nav__item md-nav__item--nested">
2498 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_6_3" >
2502 <label class=
"md-nav__link" for=
"__nav_6_3" id=
"__nav_6_3_label" tabindex=
"0">
2503 From WoltLab Suite
5.3
2504 <span class=
"md-nav__icon md-icon"></span>
2507 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_6_3_label" aria-expanded=
"false">
2508 <label class=
"md-nav__title" for=
"__nav_6_3">
2509 <span class=
"md-nav__icon md-icon"></span>
2510 From WoltLab Suite
5.3
2512 <ul class=
"md-nav__list" data-md-scrollfix
>
2519 <li class=
"md-nav__item">
2520 <a href=
"../../../../migration/wsc53/php/" class=
"md-nav__link">
2533 <li class=
"md-nav__item">
2534 <a href=
"../../../../migration/wsc53/session/" class=
"md-nav__link">
2535 Session Handling and Authentication
2547 <li class=
"md-nav__item">
2548 <a href=
"../../../../migration/wsc53/javascript/" class=
"md-nav__link">
2549 TypeScript and JavaScript
2561 <li class=
"md-nav__item">
2562 <a href=
"../../../../migration/wsc53/templates/" class=
"md-nav__link">
2575 <li class=
"md-nav__item">
2576 <a href=
"../../../../migration/wsc53/libraries/" class=
"md-nav__link">
2577 Third Party Libraries
2597 <li class=
"md-nav__item md-nav__item--nested">
2602 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_6_4" >
2606 <label class=
"md-nav__link" for=
"__nav_6_4" id=
"__nav_6_4_label" tabindex=
"0">
2607 From WoltLab Suite
5.2
2608 <span class=
"md-nav__icon md-icon"></span>
2611 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_6_4_label" aria-expanded=
"false">
2612 <label class=
"md-nav__title" for=
"__nav_6_4">
2613 <span class=
"md-nav__icon md-icon"></span>
2614 From WoltLab Suite
5.2
2616 <ul class=
"md-nav__list" data-md-scrollfix
>
2623 <li class=
"md-nav__item">
2624 <a href=
"../../../../migration/wsc52/php/" class=
"md-nav__link">
2637 <li class=
"md-nav__item">
2638 <a href=
"../../../../migration/wsc52/templates/" class=
"md-nav__link">
2639 Templates and Languages
2651 <li class=
"md-nav__item">
2652 <a href=
"../../../../migration/wsc52/libraries/" class=
"md-nav__link">
2653 Third Party Libraries
2673 <li class=
"md-nav__item md-nav__item--nested">
2678 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_6_5" >
2682 <label class=
"md-nav__link" for=
"__nav_6_5" id=
"__nav_6_5_label" tabindex=
"0">
2683 From WoltLab Suite
3.1
2684 <span class=
"md-nav__icon md-icon"></span>
2687 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_6_5_label" aria-expanded=
"false">
2688 <label class=
"md-nav__title" for=
"__nav_6_5">
2689 <span class=
"md-nav__icon md-icon"></span>
2690 From WoltLab Suite
3.1
2692 <ul class=
"md-nav__list" data-md-scrollfix
>
2699 <li class=
"md-nav__item">
2700 <a href=
"../../../../migration/wsc31/php/" class=
"md-nav__link">
2721 <li class=
"md-nav__item md-nav__item--nested">
2726 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_6_6" >
2730 <label class=
"md-nav__link" for=
"__nav_6_6" id=
"__nav_6_6_label" tabindex=
"0">
2731 From WoltLab Suite
3.0
2732 <span class=
"md-nav__icon md-icon"></span>
2735 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_6_6_label" aria-expanded=
"false">
2736 <label class=
"md-nav__title" for=
"__nav_6_6">
2737 <span class=
"md-nav__icon md-icon"></span>
2738 From WoltLab Suite
3.0
2740 <ul class=
"md-nav__list" data-md-scrollfix
>
2747 <li class=
"md-nav__item">
2748 <a href=
"../../../../migration/wsc30/php/" class=
"md-nav__link">
2761 <li class=
"md-nav__item">
2762 <a href=
"../../../../migration/wsc30/javascript/" class=
"md-nav__link">
2775 <li class=
"md-nav__item">
2776 <a href=
"../../../../migration/wsc30/templates/" class=
"md-nav__link">
2789 <li class=
"md-nav__item">
2790 <a href=
"../../../../migration/wsc30/css/" class=
"md-nav__link">
2803 <li class=
"md-nav__item">
2804 <a href=
"../../../../migration/wsc30/package/" class=
"md-nav__link">
2825 <li class=
"md-nav__item md-nav__item--nested">
2830 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_6_7" >
2834 <label class=
"md-nav__link" for=
"__nav_6_7" id=
"__nav_6_7_label" tabindex=
"0">
2836 <span class=
"md-nav__icon md-icon"></span>
2839 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_6_7_label" aria-expanded=
"false">
2840 <label class=
"md-nav__title" for=
"__nav_6_7">
2841 <span class=
"md-nav__icon md-icon"></span>
2844 <ul class=
"md-nav__list" data-md-scrollfix
>
2851 <li class=
"md-nav__item">
2852 <a href=
"../../../../migration/wcf21/php/" class=
"md-nav__link">
2865 <li class=
"md-nav__item">
2866 <a href=
"../../../../migration/wcf21/templates/" class=
"md-nav__link">
2879 <li class=
"md-nav__item">
2880 <a href=
"../../../../migration/wcf21/css/" class=
"md-nav__link">
2893 <li class=
"md-nav__item">
2894 <a href=
"../../../../migration/wcf21/package/" class=
"md-nav__link">
2923 <li class=
"md-nav__item md-nav__item--nested">
2928 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_7" >
2932 <label class=
"md-nav__link" for=
"__nav_7" id=
"__nav_7_label" tabindex=
"0">
2934 <span class=
"md-nav__icon md-icon"></span>
2937 <nav class=
"md-nav" data-md-level=
"1" aria-labelledby=
"__nav_7_label" aria-expanded=
"false">
2938 <label class=
"md-nav__title" for=
"__nav_7">
2939 <span class=
"md-nav__icon md-icon"></span>
2942 <ul class=
"md-nav__list" data-md-scrollfix
>
2950 <li class=
"md-nav__item md-nav__item--nested">
2955 <input class=
"md-nav__toggle md-toggle " type=
"checkbox" id=
"__nav_7_1" >
2959 <label class=
"md-nav__link" for=
"__nav_7_1" id=
"__nav_7_1_label" tabindex=
"0">
2961 <span class=
"md-nav__icon md-icon"></span>
2964 <nav class=
"md-nav" data-md-level=
"2" aria-labelledby=
"__nav_7_1_label" aria-expanded=
"false">
2965 <label class=
"md-nav__title" for=
"__nav_7_1">
2966 <span class=
"md-nav__icon md-icon"></span>
2969 <ul class=
"md-nav__list" data-md-scrollfix
>
2976 <li class=
"md-nav__item">
2977 <a href=
"../../../../tutorial/series/overview/" class=
"md-nav__link">
2990 <li class=
"md-nav__item">
2991 <a href=
"../../../../tutorial/series/part_1/" class=
"md-nav__link">
3004 <li class=
"md-nav__item">
3005 <a href=
"../../../../tutorial/series/part_2/" class=
"md-nav__link">
3018 <li class=
"md-nav__item">
3019 <a href=
"../../../../tutorial/series/part_3/" class=
"md-nav__link">
3032 <li class=
"md-nav__item">
3033 <a href=
"../../../../tutorial/series/part_4/" class=
"md-nav__link">
3046 <li class=
"md-nav__item">
3047 <a href=
"../../../../tutorial/series/part_5/" class=
"md-nav__link">
3060 <li class=
"md-nav__item">
3061 <a href=
"../../../../tutorial/series/part_6/" class=
"md-nav__link">
3090 <div class=
"md-sidebar md-sidebar--secondary" data-md-component=
"sidebar" data-md-type=
"toc" >
3091 <div class=
"md-sidebar__scrollwrap">
3092 <div class=
"md-sidebar__inner">
3095 <nav class=
"md-nav md-nav--secondary" aria-label=
"Table of contents">
3102 <label class=
"md-nav__title" for=
"__toc">
3103 <span class=
"md-nav__icon md-icon"></span>
3106 <ul class=
"md-nav__list" data-md-component=
"toc" data-md-scrollfix
>
3108 <li class=
"md-nav__item">
3109 <a href=
"#abstract-form-fields" class=
"md-nav__link">
3110 Abstract Form Fields
3113 <nav class=
"md-nav" aria-label=
"Abstract Form Fields">
3114 <ul class=
"md-nav__list">
3116 <li class=
"md-nav__item">
3117 <a href=
"#abstractformfield" class=
"md-nav__link">
3123 <li class=
"md-nav__item">
3124 <a href=
"#abstractnumericformfield" class=
"md-nav__link">
3125 AbstractNumericFormField
3130 <li class=
"md-nav__item">
3131 <a href=
"#abstractformfielddecorator" class=
"md-nav__link">
3132 AbstractFormFieldDecorator
3142 <li class=
"md-nav__item">
3143 <a href=
"#general-form-fields" class=
"md-nav__link">
3147 <nav class=
"md-nav" aria-label=
"General Form Fields">
3148 <ul class=
"md-nav__list">
3150 <li class=
"md-nav__item">
3151 <a href=
"#booleanformfield" class=
"md-nav__link">
3157 <li class=
"md-nav__item">
3158 <a href=
"#checkboxformfield" class=
"md-nav__link">
3164 <li class=
"md-nav__item">
3165 <a href=
"#classnameformfield" class=
"md-nav__link">
3171 <li class=
"md-nav__item">
3172 <a href=
"#dateformfield" class=
"md-nav__link">
3178 <li class=
"md-nav__item">
3179 <a href=
"#descriptionformfield" class=
"md-nav__link">
3180 DescriptionFormField
3185 <li class=
"md-nav__item">
3186 <a href=
"#emailformfield" class=
"md-nav__link">
3192 <li class=
"md-nav__item">
3193 <a href=
"#floatformfield" class=
"md-nav__link">
3199 <li class=
"md-nav__item">
3200 <a href=
"#hiddenformfield" class=
"md-nav__link">
3206 <li class=
"md-nav__item">
3207 <a href=
"#iconformfield" class=
"md-nav__link">
3213 <li class=
"md-nav__item">
3214 <a href=
"#integerformfield" class=
"md-nav__link">
3220 <li class=
"md-nav__item">
3221 <a href=
"#isdisabledformfield" class=
"md-nav__link">
3227 <li class=
"md-nav__item">
3228 <a href=
"#itemlistformfield" class=
"md-nav__link">
3234 <li class=
"md-nav__item">
3235 <a href=
"#multilinetextformfield" class=
"md-nav__link">
3236 MultilineTextFormField
3241 <li class=
"md-nav__item">
3242 <a href=
"#multipleselectionformfield" class=
"md-nav__link">
3243 MultipleSelectionFormField
3248 <li class=
"md-nav__item">
3249 <a href=
"#radiobuttonformfield" class=
"md-nav__link">
3250 RadioButtonFormField
3255 <li class=
"md-nav__item">
3256 <a href=
"#ratingformfield" class=
"md-nav__link">
3262 <li class=
"md-nav__item">
3263 <a href=
"#showorderformfield" class=
"md-nav__link">
3269 <li class=
"md-nav__item">
3270 <a href=
"#singleselectionformfield" class=
"md-nav__link">
3271 SingleSelectionFormField
3276 <li class=
"md-nav__item">
3277 <a href=
"#sortorderformfield" class=
"md-nav__link">
3283 <li class=
"md-nav__item">
3284 <a href=
"#textformfield" class=
"md-nav__link">
3290 <li class=
"md-nav__item">
3291 <a href=
"#titleformfield" class=
"md-nav__link">
3297 <li class=
"md-nav__item">
3298 <a href=
"#urlformfield" class=
"md-nav__link">
3309 <li class=
"md-nav__item">
3310 <a href=
"#specific-fields" class=
"md-nav__link">
3314 <nav class=
"md-nav" aria-label=
"Specific Fields">
3315 <ul class=
"md-nav__list">
3317 <li class=
"md-nav__item">
3318 <a href=
"#aclformfield" class=
"md-nav__link">
3324 <li class=
"md-nav__item">
3325 <a href=
"#buttonformfield" class=
"md-nav__link">
3331 <li class=
"md-nav__item">
3332 <a href=
"#captchaformfield" class=
"md-nav__link">
3338 <li class=
"md-nav__item">
3339 <a href=
"#colorformfield" class=
"md-nav__link">
3345 <li class=
"md-nav__item">
3346 <a href=
"#contentlanguageformfield" class=
"md-nav__link">
3347 ContentLanguageFormField
3352 <li class=
"md-nav__item">
3353 <a href=
"#labelformfield" class=
"md-nav__link">
3359 <li class=
"md-nav__item">
3360 <a href=
"#optionformfield" class=
"md-nav__link">
3366 <li class=
"md-nav__item">
3367 <a href=
"#simpleaclformfield" class=
"md-nav__link">
3373 <li class=
"md-nav__item">
3374 <a href=
"#singlemediaselectionformfield" class=
"md-nav__link">
3375 SingleMediaSelectionFormField
3380 <li class=
"md-nav__item">
3381 <a href=
"#tagformfield" class=
"md-nav__link">
3387 <li class=
"md-nav__item">
3388 <a href=
"#uploadformfield" class=
"md-nav__link">
3392 <nav class=
"md-nav" aria-label=
"UploadFormField">
3393 <ul class=
"md-nav__list">
3395 <li class=
"md-nav__item">
3396 <a href=
"#provide-value-from-database-object" class=
"md-nav__link">
3397 Provide value from database object
3402 <li class=
"md-nav__item">
3403 <a href=
"#process-files" class=
"md-nav__link">
3414 <li class=
"md-nav__item">
3415 <a href=
"#userformfield" class=
"md-nav__link">
3421 <li class=
"md-nav__item">
3422 <a href=
"#userpasswordfield" class=
"md-nav__link">
3428 <li class=
"md-nav__item">
3429 <a href=
"#usergroupoptionformfield" class=
"md-nav__link">
3430 UserGroupOptionFormField
3435 <li class=
"md-nav__item">
3436 <a href=
"#usernameformfield" class=
"md-nav__link">
3447 <li class=
"md-nav__item">
3448 <a href=
"#wysiwyg-form-container" class=
"md-nav__link">
3449 Wysiwyg form container
3452 <nav class=
"md-nav" aria-label=
"Wysiwyg form container">
3453 <ul class=
"md-nav__list">
3455 <li class=
"md-nav__item">
3456 <a href=
"#wysiwygattachmentformfield" class=
"md-nav__link">
3457 WysiwygAttachmentFormField
3462 <li class=
"md-nav__item">
3463 <a href=
"#wysiwygpollformcontainer" class=
"md-nav__link">
3464 WysiwygPollFormContainer
3469 <li class=
"md-nav__item">
3470 <a href=
"#wysiwygsmileyformcontainer" class=
"md-nav__link">
3471 WysiwygSmileyFormContainer
3474 <nav class=
"md-nav" aria-label=
"WysiwygSmileyFormContainer">
3475 <ul class=
"md-nav__list">
3477 <li class=
"md-nav__item">
3478 <a href=
"#wysiwygsmileyformnode" class=
"md-nav__link">
3479 WysiwygSmileyFormNode
3489 <li class=
"md-nav__item">
3490 <a href=
"#example" class=
"md-nav__link">
3496 <li class=
"md-nav__item">
3497 <a href=
"#wysiwygformfield" class=
"md-nav__link">
3503 <li class=
"md-nav__item">
3504 <a href=
"#twysiwygformnode" class=
"md-nav__link">
3515 <li class=
"md-nav__item">
3516 <a href=
"#application-specific-form-fields" class=
"md-nav__link">
3517 Application-Specific Form Fields
3520 <nav class=
"md-nav" aria-label=
"Application-Specific Form Fields">
3521 <ul class=
"md-nav__list">
3523 <li class=
"md-nav__item">
3524 <a href=
"#woltlab-suite-forum" class=
"md-nav__link">
3528 <nav class=
"md-nav" aria-label=
"WoltLab Suite Forum">
3529 <ul class=
"md-nav__list">
3531 <li class=
"md-nav__item">
3532 <a href=
"#multipleboardselectionformfield" class=
"md-nav__link">
3533 MultipleBoardSelectionFormField
3548 <li class=
"md-nav__item">
3549 <a href=
"#single-use-form-fields" class=
"md-nav__link">
3550 Single-Use Form Fields
3553 <nav class=
"md-nav" aria-label=
"Single-Use Form Fields">
3554 <ul class=
"md-nav__list">
3556 <li class=
"md-nav__item">
3557 <a href=
"#bbcodeattributesformfield" class=
"md-nav__link">
3558 BBCodeAttributesFormField
3563 <li class=
"md-nav__item">
3564 <a href=
"#devtoolsprojectexcludedpackagesformfield" class=
"md-nav__link">
3565 DevtoolsProjectExcludedPackagesFormField
3570 <li class=
"md-nav__item">
3571 <a href=
"#devtoolsprojectinstructionsformfield" class=
"md-nav__link">
3572 DevtoolsProjectInstructionsFormField
3577 <li class=
"md-nav__item">
3578 <a href=
"#devtoolsprojectoptionalpackagesformfield" class=
"md-nav__link">
3579 DevtoolsProjectOptionalPackagesFormField
3584 <li class=
"md-nav__item">
3585 <a href=
"#devtoolsprojectrequiredpackagesformfield" class=
"md-nav__link">
3586 DevtoolsProjectRequiredPackagesFormField
3605 <div class=
"md-content" data-md-component=
"content">
3606 <article class=
"md-content__inner md-typeset">
3614 <h1 id=
"form-builder-fields">Form Builder Fields
<a class=
"headerlink" href=
"#form-builder-fields" title=
"Permanent link">#
</a></h1>
3615 <h2 id=
"abstract-form-fields">Abstract Form Fields
<a class=
"headerlink" href=
"#abstract-form-fields" title=
"Permanent link">#
</a></h2>
3616 <p>The following form field classes cannot be instantiated directly because they are abstract, but they can/must be used when creating own form field classes.
</p>
3617 <h3 id=
"abstractformfield"><code>AbstractFormField
</code><a class=
"headerlink" href=
"#abstractformfield" title=
"Permanent link">#
</a></h3>
3618 <p><code>AbstractFormField
</code> is the abstract default implementation of the
<code>IFormField
</code> interface and it is expected that every implementation of
<code>IFormField
</code> implements the interface by extending this class.
</p>
3619 <h3 id=
"abstractnumericformfield"><code>AbstractNumericFormField
</code><a class=
"headerlink" href=
"#abstractnumericformfield" title=
"Permanent link">#
</a></h3>
3620 <p><code>AbstractNumericFormField
</code> is the abstract implementation of a form field handling a single numeric value.
3621 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoCompleteFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>,
<code>IInputModeFormField
</code>,
<code>IMaximumFormField
</code>,
<code>IMinimumFormField
</code>,
<code>INullableFormField
</code>,
<code>IPlaceholderFormField
</code> and
<code>ISuffixedFormField
</code>.
3622 If the property
<code>$integerValues
</code> is
<code>true
</code>, the form field works with integer values, otherwise it works with floating point numbers.
3623 The methods
<code>step($step = null)
</code> and
<code>getStep()
</code> can be used to set and get the step attribute of the
<code>input
</code> element.
3624 The default step for form fields with integer values is
<code>1</code>.
3625 Otherwise, the default step is
<code>any
</code>.
</p>
3626 <h3 id=
"abstractformfielddecorator"><code>AbstractFormFieldDecorator
</code><a class=
"headerlink" href=
"#abstractformfielddecorator" title=
"Permanent link">#
</a></h3>
3627 <div class=
"admonition info">
3628 <p class=
"admonition-title">Only available since version
5.4.5.
</p>
3630 <p><code>AbstractFormFieldDecorator
</code> is a default implementation of a decorator for form fields that forwards calls to all methods defined in
<code>IFormField
</code> to the respective method of the decorated object.
3631 The class implements
<code>IFormfield
</code>.
3632 If the implementation of a more specific interface is required then the remaining methods must be implemented in the concrete decorator derived from
<code>AbstractFormFieldDecorator
</code> and the type of the
<code>$field
</code> property must be narrowed appropriately.
</p>
3633 <h2 id=
"general-form-fields">General Form Fields
<a class=
"headerlink" href=
"#general-form-fields" title=
"Permanent link">#
</a></h2>
3634 <p>The following form fields are general reusable fields without any underlying context.
</p>
3635 <h3 id=
"booleanformfield"><code>BooleanFormField
</code><a class=
"headerlink" href=
"#booleanformfield" title=
"Permanent link">#
</a></h3>
3636 <p><code>BooleanFormField
</code> is used for boolean (
<code>0</code> or
<code>1</code>,
<code>yes
</code> or
<code>no
</code>) values.
3637 Objects of this class require a label.
3638 The return value of
<code>getSaveValue()
</code> is the integer representation of the boolean value, i.e.
<code>0</code> or
<code>1</code>.
3639 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>ICssClassFormField
</code>, and
<code>IImmutableFormField
</code>.
</p>
3640 <h3 id=
"checkboxformfield"><code>CheckboxFormField
</code><a class=
"headerlink" href=
"#checkboxformfield" title=
"Permanent link">#
</a></h3>
3641 <p><code>CheckboxFormField
</code> extends
<code>BooleanFormField
</code> and offers a simple HTML checkbox.
</p>
3642 <h3 id=
"classnameformfield"><code>ClassNameFormField
</code><a class=
"headerlink" href=
"#classnameformfield" title=
"Permanent link">#
</a></h3>
3643 <p><code>ClassNameFormField
</code> is a
<a href=
"#textformfield">text form field
</a> that supports additional settings, specific to entering a PHP class name:
</p>
3645 <li><code>classExists($classExists = true)
</code> and
<code>getClassExists()
</code> can be used to ensure that the entered class currently exists in the installation.
3646 By default, the existance of the entered class is required.
</li>
3647 <li><code>implementedInterface($interface)
</code> and
<code>getImplementedInterface()
</code> can be used to ensure that the entered class implements the specified interface.
3648 By default, no interface is required.
</li>
3649 <li><code>parentClass($parentClass)
</code> and
<code>getParentClass()
</code> can be used to ensure that the entered class extends the specified class.
3650 By default, no parent class is required.
</li>
3651 <li><code>instantiable($instantiable = true)
</code> and
<code>isInstantiable()
</code> can be used to ensure that the entered class is instantiable.
3652 By default, entered classes have to instantiable.
</li>
3654 <p>Additionally, the default id of a
<code>ClassNameFormField
</code> object is
<code>className
</code>, the default label is
<code>wcf.form.field.className
</code>, and if either an interface or a parent class is required, a default description is set if no description has already been set (
<code>wcf.form.field.className.description.interface
</code> and
<code>wcf.form.field.className.description.parentClass
</code>, respectively).
</p>
3655 <h3 id=
"dateformfield"><code>DateFormField
</code><a class=
"headerlink" href=
"#dateformfield" title=
"Permanent link">#
</a></h3>
3656 <p><code>DateFormField
</code> is a form field to enter a date (and optionally a time).
3657 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>INullableFormField
</code>.
3658 The following methods are specific to this form field class:
</p>
3660 <li><code>earliestDate($earliestDate)
</code> and
<code>getEarliestDate()
</code> can be used to get and set the earliest selectable/valid date and
<code>latestDate($latestDate)
</code> and
<code>getLatestDate()
</code> can be used to get and set the latest selectable/valid date.
3661 The date passed to the setters must have the same format as set via
<code>saveValueFormat()
</code>.
3662 If a custom format is used, that format has to be set via
<code>saveValueFormat()
</code> before calling any of the setters.
</li>
3663 <li><code>saveValueFormat($saveValueFormat)
</code> and
<code>getSaveValueFormat()
</code> can be used to specify the date format of the value returned by
<code>getSaveValue()
</code>.
3664 By default,
<code>U
</code> is used as format.
3665 The
<a href=
"https://secure.php.net/manual/en/function.date.php">PHP manual
</a> provides an overview of supported formats.
</li>
3666 <li><code>supportTime($supportsTime = true)
</code> and
<code>supportsTime()
</code> can be used to toggle whether, in addition to a date, a time can also be specified.
3667 By default, specifying a time is disabled.
</li>
3669 <h3 id=
"descriptionformfield"><code>DescriptionFormField
</code><a class=
"headerlink" href=
"#descriptionformfield" title=
"Permanent link">#
</a></h3>
3670 <p><code>DescriptionFormField
</code> is a
<a href=
"#multilinetextformfield">multi-line text form field
</a> with
<code>description
</code> as the default id and
<code>wcf.global.description
</code> as the default label.
</p>
3671 <h3 id=
"emailformfield"><code>EmailFormField
</code><a class=
"headerlink" href=
"#emailformfield" title=
"Permanent link">#
</a></h3>
3672 <p><code>EmailFormField
</code> is a form field to enter an email address which is internally validated using
<code>UserUtil::isValidEmail()
</code>.
3673 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoCompleteFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>ICssClassFormField
</code>,
<code>II18nFormField
</code>,
<code>IImmutableFormField
</code>,
<code>IInputModeFormField
</code>,
<code>IPatternFormField
</code>, and
<code>IPlaceholderFormField
</code>.
</p>
3674 <h3 id=
"floatformfield"><code>FloatFormField
</code><a class=
"headerlink" href=
"#floatformfield" title=
"Permanent link">#
</a></h3>
3675 <p><code>FloatFormField
</code> is an implementation of
<a href=
"#abstractnumericformfield">AbstractNumericFormField
</a> for floating point numbers.
</p>
3676 <h3 id=
"hiddenformfield"><code>HiddenFormField
</code><a class=
"headerlink" href=
"#hiddenformfield" title=
"Permanent link">#
</a></h3>
3677 <p><code>HiddenFormField
</code> is a form field without any user-visible UI.
3678 Even though the form field is invisible to the user, the value can still be modified by the user, e.g. by leveraging the web browsers developer tools.
3679 The
<code>HiddenFormField
</code> <em>must not
</em> be used to transfer sensitive information or information that the user should not be able to modify.
</p>
3680 <h3 id=
"iconformfield"><code>IconFormField
</code><a class=
"headerlink" href=
"#iconformfield" title=
"Permanent link">#
</a></h3>
3681 <p><code>IconFormField
</code> is a form field to select a FontAwesome icon.
</p>
3682 <h3 id=
"integerformfield"><code>IntegerFormField
</code><a class=
"headerlink" href=
"#integerformfield" title=
"Permanent link">#
</a></h3>
3683 <p><code>IntegerFormField
</code> is an implementation of
<a href=
"#abstractnumericformfield">AbstractNumericFormField
</a> for integers.
</p>
3684 <h3 id=
"isdisabledformfield"><code>IsDisabledFormField
</code><a class=
"headerlink" href=
"#isdisabledformfield" title=
"Permanent link">#
</a></h3>
3685 <p><code>IsDisabledFormField
</code> is a
<a href=
"#booleanformfield">boolean form field
</a> with
<code>isDisabled
</code> as the default id.
</p>
3686 <h3 id=
"itemlistformfield"><code>ItemListFormField
</code><a class=
"headerlink" href=
"#itemlistformfield" title=
"Permanent link">#
</a></h3>
3687 <p><code>ItemListFormField
</code> is a form field in which multiple values can be entered and returned in different formats as save value.
3688 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>IMultipleFormField
</code>.
3689 The
<code>saveValueType($saveValueType)
</code> and
<code>getSaveValueType()
</code> methods are specific to this form field class and determine the format of the save value.
3690 The following save value types are supported:
</p>
3692 <li><code>ItemListFormField::SAVE_VALUE_TYPE_ARRAY
</code> adds a custom data processor that writes the form field data directly in the parameters array and not in the data sub-array of the parameters array.
</li>
3693 <li><code>ItemListFormField::SAVE_VALUE_TYPE_CSV
</code> lets the value be returned as a string in which the values are concatenated by commas.
</li>
3694 <li><code>ItemListFormField::SAVE_VALUE_TYPE_NSV
</code> lets the value be returned as a string in which the values are concatenated by
<code>\n
</code>.
</li>
3695 <li><code>ItemListFormField::SAVE_VALUE_TYPE_SSV
</code> lets the value be returned as a string in which the values are concatenated by spaces.
</li>
3697 <p>By default,
<code>ItemListFormField::SAVE_VALUE_TYPE_CSV
</code> is used.
</p>
3698 <p>If
<code>ItemListFormField::SAVE_VALUE_TYPE_ARRAY
</code> is used as save value type,
<code>ItemListFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the relevant array into the
<code>$parameters
</code> array directly using the object property as the array key.
</p>
3699 <h3 id=
"multilinetextformfield"><code>MultilineTextFormField
</code><a class=
"headerlink" href=
"#multilinetextformfield" title=
"Permanent link">#
</a></h3>
3700 <p><code>MultilineTextFormField
</code> is a
<a href=
"#textformfield">text form field
</a> that supports multiple rows of text.
3701 The methods
<code>rows($rows)
</code> and
<code>getRows()
</code> can be used to set and get the number of rows of the
<code>textarea
</code> elements.
3702 The default number of rows is
<code>10</code>.
3703 These methods do
<strong>not
</strong>, however, restrict the number of text rows that can be entered.
</p>
3704 <h3 id=
"multipleselectionformfield"><code>MultipleSelectionFormField
</code><a class=
"headerlink" href=
"#multipleselectionformfield" title=
"Permanent link">#
</a></h3>
3705 <p><code>MultipleSelectionFormField
</code> is a form fields that allows the selection of multiple options out of a predefined list of available options.
3706 The class implements
<code>IAttributeFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IFilterableSelectionFormField
</code>, and
<code>IImmutableFormField
</code>.
</p>
3707 <h3 id=
"radiobuttonformfield"><code>RadioButtonFormField
</code><a class=
"headerlink" href=
"#radiobuttonformfield" title=
"Permanent link">#
</a></h3>
3708 <p><code>RadioButtonFormField
</code> is a form fields that allows the selection of a single option out of a predefined list of available options using radiobuttons.
3709 The class implements
<code>IAttributeFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>ISelectionFormField
</code>.
</p>
3710 <h3 id=
"ratingformfield"><code>RatingFormField
</code><a class=
"headerlink" href=
"#ratingformfield" title=
"Permanent link">#
</a></h3>
3711 <p><code>RatingFormField
</code> is a form field to set a rating for an object.
3712 The class implements
<code>IImmutableFormField
</code>,
<code>IMaximumFormField
</code>,
<code>IMinimumFormField
</code>, and
<code>INullableFormField
</code>.
3713 Form fields of this class have
<code>rating
</code> as their default id,
<code>wcf.form.field.rating
</code> as their default label,
<code>1</code> as their default minimum, and
<code>5</code> as their default maximum.
3714 For this field, the minimum and maximum refer to the minimum and maximum rating an object can get.
3715 When the field is shown, there will be
<code>maximum() - minimum() +
1</code> icons be shown with additional CSS classes that can be set and gotten via
<code>defaultCssClasses(array $cssClasses)
</code> and
<code>getDefaultCssClasses()
</code>.
3716 If a rating values is set, the first
<code>getValue()
</code> icons will instead use the classes that can be set and gotten via
<code>activeCssClasses(array $cssClasses)
</code> and
<code>getActiveCssClasses()
</code>.
3717 By default, the only default class is
<code>fa-star-o
</code> and the active classes are
<code>fa-star
</code> and
<code>orange
</code>.
</p>
3718 <h3 id=
"showorderformfield"><code>ShowOrderFormField
</code><a class=
"headerlink" href=
"#showorderformfield" title=
"Permanent link">#
</a></h3>
3719 <p><code>ShowOrderFormField
</code> is a
<a href=
"#singleselectionformfield">single selection form field
</a> for which the selected value determines the position at which an object is shown.
3720 The show order field provides a list of all siblings and the object will be positioned
<strong>after
</strong> the selected sibling.
3721 To insert objects at the very beginning, the
<code>options()
</code> automatically method prepends an additional option for that case so that only the existing siblings need to be passed.
3722 The default id of instances of this class is
<code>showOrder
</code> and their default label is
<code>wcf.form.field.showOrder
</code>.
</p>
3723 <div class=
"admonition info">
3724 <p class=
"admonition-title">It is important that the relevant object property is always kept updated. Whenever a new object is added or an existing object is edited or delete, the values of the other objects have to be adjusted to ensure consecutive numbering.
</p>
3726 <h3 id=
"singleselectionformfield"><code>SingleSelectionFormField
</code><a class=
"headerlink" href=
"#singleselectionformfield" title=
"Permanent link">#
</a></h3>
3727 <p><code>SingleSelectionFormField
</code> is a form fields that allows the selection of a single option out of a predefined list of available options.
3728 The class implements
<code>ICssClassFormField
</code>,
<code>IFilterableSelectionFormField
</code>,
<code>IImmutableFormField
</code>, and
<code>INullableFormField
</code>.
3729 If the field is nullable and the current form field value is considered
<code>empty
</code> by PHP,
<code>null
</code> is returned as the save value.
</p>
3730 <h3 id=
"sortorderformfield"><code>SortOrderFormField
</code><a class=
"headerlink" href=
"#sortorderformfield" title=
"Permanent link">#
</a></h3>
3731 <p><code>SingleSelectionFormField
</code> is a
<a href=
"#singleselectionformfield">single selection form field
</a> with default id
<code>sortOrder
</code>, default label
<code>wcf.global.showOrder
</code> and default options
<code>ASC: wcf.global.sortOrder.ascending
</code> and
<code>DESC: wcf.global.sortOrder.descending
</code>.
</p>
3732 <h3 id=
"textformfield"><code>TextFormField
</code><a class=
"headerlink" href=
"#textformfield" title=
"Permanent link">#
</a></h3>
3733 <p><code>TextFormField
</code> is a form field that allows entering a single line of text.
3734 The class implements
<code>IAttributeFormField
</code>,
<code>IAutoCompleteFormField
</code>,
<code>ICssClassFormField
</code>,
<code>IImmutableFormField
</code>,
<code>II18nFormField
</code>,
<code>IInputModeFormField
</code>,
<code>IMaximumLengthFormField
</code>,
<code>IMinimumLengthFormField
</code>,
<code>IPatternFormField
</code>, and
<code>IPlaceholderFormField
</code>.
</p>
3735 <h3 id=
"titleformfield"><code>TitleFormField
</code><a class=
"headerlink" href=
"#titleformfield" title=
"Permanent link">#
</a></h3>
3736 <p><code>TitleFormField
</code> is a
<a href=
"#textformfield">text form field
</a> with
<code>title
</code> as the default id and
<code>wcf.global.title
</code> as the default label.
</p>
3737 <h3 id=
"urlformfield"><code>UrlFormField
</code><a class=
"headerlink" href=
"#urlformfield" title=
"Permanent link">#
</a></h3>
3738 <p><code>UrlFormField
</code> is a
<a href=
"#textformfield">text form field
</a> whose values are checked via
<code>Url::is()
</code>.
</p>
3739 <h2 id=
"specific-fields">Specific Fields
<a class=
"headerlink" href=
"#specific-fields" title=
"Permanent link">#
</a></h2>
3740 <p>The following form fields are reusable fields that generally are bound to a certain API or
<code>DatabaseObject
</code> implementation.
</p>
3741 <h3 id=
"aclformfield"><code>AclFormField
</code><a class=
"headerlink" href=
"#aclformfield" title=
"Permanent link">#
</a></h3>
3742 <p><code>AclFormField
</code> is used for setting up acl values for specific objects.
3743 The class implements
<code>IObjectTypeFormField
</code> and requires an object type of the object type definition
<code>com.woltlab.wcf.acl
</code>.
3744 Additionally, the class provides the methods
<code>categoryName($categoryName)
</code> and
<code>getCategoryName()
</code> that allow setting a specific name or filter for the acl option categories whose acl options are shown.
3745 A category name of
<code>null
</code> signals that no category filter is used.
</p>
3746 <div class=
"admonition info">
3747 <p class=
"admonition-title">Since version
5.5, the category name also supports filtering using a wildcard like
<code>user.*
</code>, see
<a href=
"https://github.com/WoltLab/WCF/pull/4355">WoltLab/WCF#
4355</a>.
</p>
3749 <p><code>AclFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the relevant ACL object type id into the
<code>$parameters
</code> array directly using
<code>{$objectProperty}_aclObjectTypeID
</code> as the array key.
3750 The relevant database object action method is expected, based on the given ACL object type id, to save the ACL option values appropriately.
</p>
3751 <h3 id=
"buttonformfield"><code>ButtonFormField
</code><a class=
"headerlink" href=
"#buttonformfield" title=
"Permanent link">#
</a></h3>
3752 <div class=
"admonition info">
3753 <p class=
"admonition-title">Only available since version
5.4.
</p>
3755 <p><code>ButtonFormField
</code> shows a submit button as part of the form.
3756 The class implements
<code>IAttributeFormField
</code> and
<code>ICssClassFormField
</code>.
</p>
3757 <p>Specifically for this form field, there is the
<code>IsNotClickedFormFieldDependency
</code> dependency with which certain parts of the form will only be processed if the relevent button has not clicked.
</p>
3758 <h3 id=
"captchaformfield"><code>CaptchaFormField
</code><a class=
"headerlink" href=
"#captchaformfield" title=
"Permanent link">#
</a></h3>
3759 <p><code>CaptchaFormField
</code> is used to add captcha protection to the form.
</p>
3760 <p>You must specify a captcha object type (
<code>com.woltlab.wcf.captcha
</code>) using the
<code>objectType()
</code> method.
</p>
3761 <h3 id=
"colorformfield"><code>ColorFormField
</code><a class=
"headerlink" href=
"#colorformfield" title=
"Permanent link">#
</a></h3>
3762 <div class=
"admonition info">
3763 <p class=
"admonition-title">Only available since version
5.5.
</p>
3765 <p><code>ColorFormField
</code> is used to specify RGBA colors using the
<code>rgba(r, g, b, a)
</code> format.
3766 The class implements
<code>IImmutableFormField
</code>.
</p>
3767 <h3 id=
"contentlanguageformfield"><code>ContentLanguageFormField
</code><a class=
"headerlink" href=
"#contentlanguageformfield" title=
"Permanent link">#
</a></h3>
3768 <p><code>ContentLanguageFormField
</code> is used to select the content language of an object.
3769 Fields of this class are only available if multilingualism is enabled and if there are content languages.
3770 The class implements
<code>IImmutableFormField
</code>.
</p>
3771 <h3 id=
"labelformfield"><code>LabelFormField
</code><a class=
"headerlink" href=
"#labelformfield" title=
"Permanent link">#
</a></h3>
3772 <p><code>LabelFormField
</code> is used to select a label from a specific label group.
3773 The class implements
<code>IObjectTypeFormNode
</code>.
</p>
3774 <p>The
<code>labelGroup(ViewableLabelGroup $labelGroup)
</code> and
<code>getLabelGroup()
</code> methods are specific to this form field class and can be used to set and get the label group whose labels can be selected.
3775 Additionally, there is the static method
<code>createFields($objectType, array $labelGroups, $objectProperty = 'labelIDs)
</code> that can be used to create all relevant label form fields for a given list of label groups.
3776 In most cases,
<code>LabelFormField::createFields()
</code> should be used.
</p>
3777 <h3 id=
"optionformfield"><code>OptionFormField
</code><a class=
"headerlink" href=
"#optionformfield" title=
"Permanent link">#
</a></h3>
3778 <p><code>OptionFormField
</code> is an
<a href=
"#itemlistformfield">item list form field
</a> to set a list of options.
3779 The class implements
<code>IPackagesFormField
</code> and only options of the set packages are considered available.
3780 The default label of instances of this class is
<code>wcf.form.field.option
</code> and their default id is
<code>options
</code>.
</p>
3781 <h3 id=
"simpleaclformfield"><code>SimpleAclFormField
</code><a class=
"headerlink" href=
"#simpleaclformfield" title=
"Permanent link">#
</a></h3>
3782 <p><code>SimpleAclFormField
</code> is used for setting up simple acl values (one
<code>yes
</code>/
<code>no
</code> option per user and user group) for specific objects.
</p>
3783 <p><code>SimpleAclFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the relevant simple ACL data array into the
<code>$parameters
</code> array directly using the object property as the array key.
</p>
3784 <div class=
"admonition info">
3785 <p class=
"admonition-title">Since version
5.5, the field also supports inverted permissions, see
<a href=
"https://github.com/WoltLab/WCF/pull/4570">WoltLab/WCF#
4570</a>.
</p>
3787 <p>The
<code>SimpleAclFormField
</code> supports inverted permissions, allowing the administrator to grant access to all non-selected users and groups. If this behavior is desired, it needs to be enabled by calling
<code>supportInvertedPermissions
</code>. An
<code>invertPermissions
</code> key containing a boolean value with the users selection will be provided together with the ACL values when saving the field.
</p>
3788 <h3 id=
"singlemediaselectionformfield"><code>SingleMediaSelectionFormField
</code><a class=
"headerlink" href=
"#singlemediaselectionformfield" title=
"Permanent link">#
</a></h3>
3789 <p><code>SingleMediaSelectionFormField
</code> is used to select a specific media file.
3790 The class implements
<code>IImmutableFormField
</code>.
</p>
3791 <p>The following methods are specific to this form field class:
</p>
3793 <li><code>imageOnly($imageOnly = true)
</code> and
<code>isImageOnly()
</code> can be used to set and check if only images may be selected.
</li>
3794 <li><code>getMedia()
</code> returns the media file based on the current field value if a field is set.
</li>
3796 <h3 id=
"tagformfield"><code>TagFormField
</code><a class=
"headerlink" href=
"#tagformfield" title=
"Permanent link">#
</a></h3>
3797 <p><code>TagFormField
</code> is a form field to enter tags.
3798 The class implements
<code>IAttributeFormField
</code> and
<code>IObjectTypeFormNode
</code>.
3799 Arrays passed to
<code>TagFormField::values()
</code> can contain tag names as strings and
<code>Tag
</code> objects.
3800 The default label of instances of this class is
<code>wcf.tagging.tags
</code> and their default description is
<code>wcf.tagging.tags.description
</code>.
</p>
3801 <p><code>TagFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the array with entered tag names into the
<code>$parameters
</code> array directly using the object property as the array key.
</p>
3802 <h3 id=
"uploadformfield"><code>UploadFormField
</code><a class=
"headerlink" href=
"#uploadformfield" title=
"Permanent link">#
</a></h3>
3803 <p><code>UploadFormField
</code> is a form field that allows uploading files by the user.
</p>
3804 <p><code>UploadFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the array of
<code>wcf\system\file\upload\UploadFile\UploadFile
</code> into the
<code>$parameters
</code> array directly using the object property as the array key. Also it registers the removed files as an array of
<code>wcf\system\file\upload\UploadFile\UploadFile
</code> into the
<code>$parameters
</code> array directly using the object property with the suffix
<code>_removedFiles
</code> as the array key.
</p>
3805 <p>The field supports additional settings:
</p>
3807 <li><code>imageOnly($imageOnly = true)
</code> and
<code>isImageOnly()
</code> can be used to ensure that the uploaded files are only images.
</li>
3808 <li><code>allowSvgImage($allowSvgImages = true)
</code> and
<code>svgImageAllowed()
</code> can be used to allow SVG images, if the image only mode is enabled (otherwise, the method will throw an exception). By default, SVG images are not allowed.
</li>
3810 <h4 id=
"provide-value-from-database-object">Provide value from database object
<a class=
"headerlink" href=
"#provide-value-from-database-object" title=
"Permanent link">#
</a></h4>
3811 <p>To provide values from a database object, you should implement the method
<code>get{$objectProperty}UploadFileLocations()
</code> to your database object class. This method must return an array of strings with the locations of the files.
</p>
3812 <h4 id=
"process-files">Process files
<a class=
"headerlink" href=
"#process-files" title=
"Permanent link">#
</a></h4>
3813 <p>To process files in the database object action class, you must
<a href=
"https://secure.php.net/manual/en/function.rename.php"><code>rename
</code></a> the file to the final destination. You get the temporary location, by calling the method
<code>getLocation()
</code> on the given
<code>UploadFile
</code> objects. After that, you call
<code>setProcessed($location)
</code> with
<code>$location
</code> contains the new file location. This method sets the
<code>isProcessed
</code> flag to true and saves the new location. For updating files, it is relevant, whether a given file is already processed or not. For this case, the
<code>UploadFile
</code> object has an method
<code>isProcessed()
</code> which indicates, whether a file is already processed or new uploaded.
</p>
3814 <h3 id=
"userformfield"><code>UserFormField
</code><a class=
"headerlink" href=
"#userformfield" title=
"Permanent link">#
</a></h3>
3815 <p><code>UserFormField
</code> is a form field to enter existing users.
3816 The class implements
<code>IAutoCompleteFormField
</code>,
<code>IAutoFocusFormField
</code>,
<code>IImmutableFormField
</code>,
<code>IMultipleFormField
</code>, and
<code>INullableFormField
</code>.
3817 While the user is presented the names of the specified users in the user interface, the field returns the ids of the users as data.
3818 The relevant
<code>UserProfile
</code> objects can be accessed via the
<code>getUsers()
</code> method.
</p>
3819 <h3 id=
"userpasswordfield"><code>UserPasswordField
</code><a class=
"headerlink" href=
"#userpasswordfield" title=
"Permanent link">#
</a></h3>
3820 <div class=
"admonition info">
3821 <p class=
"admonition-title">Only available since version
5.4.
</p>
3823 <p><code>UserPasswordField
</code> is a form field for users' to enter their current password.
3824 The class implements
<code>IAttributeFormField
</code>,
<code>IAttributeFormField
</code>,
<code>IAutoCompleteFormField
</code>,
<code>IAutoFocusFormField
</code>, and
<code>IPlaceholderFormField
</code></p>
3825 <h3 id=
"usergroupoptionformfield"><code>UserGroupOptionFormField
</code><a class=
"headerlink" href=
"#usergroupoptionformfield" title=
"Permanent link">#
</a></h3>
3826 <p><code>UserGroupOptionFormField
</code> is an
<a href=
"#itemlistformfield">item list form field
</a> to set a list of user group options/permissions.
3827 The class implements
<code>IPackagesFormField
</code> and only user group options of the set packages are considered available.
3828 The default label of instances of this class is
<code>wcf.form.field.userGroupOption
</code> and their default id is
<code>permissions
</code>.
</p>
3829 <h3 id=
"usernameformfield"><code>UsernameFormField
</code><a class=
"headerlink" href=
"#usernameformfield" title=
"Permanent link">#
</a></h3>
3830 <p><code>UsernameFormField
</code> is used for entering one non-existing username.
3831 The class implements
<code>IAttributeFormField
</code>,
<code>IImmutableFormField
</code>,
<code>IMaximumLengthFormField
</code>,
<code>IMinimumLengthFormField
</code>,
<code>INullableFormField
</code>, and
<code>IPlaceholderFormField
</code>.
3832 As usernames have a system-wide restriction of a minimum length of
3 and a maximum length of
100 characters, these values are also used as the default value for the field’s minimum and maximum length.
</p>
3833 <h2 id=
"wysiwyg-form-container">Wysiwyg form container
<a class=
"headerlink" href=
"#wysiwyg-form-container" title=
"Permanent link">#
</a></h2>
3834 <p>To integrate a wysiwyg editor into a form, you have to create a
<code>WysiwygFormContainer
</code> object.
3835 This container takes care of creating all necessary form nodes listed below for a wysiwyg editor.
</p>
3836 <div class=
"admonition warning">
3837 <p class=
"admonition-title">When creating the container object, its id has to be the id of the form field that will manage the actual text.
</p>
3839 <p>The following methods are specific to this form container class:
</p>
3841 <li><code>addSettingsNode(IFormChildNode $settingsNode)
</code> and
<code>addSettingsNodes(array $settingsNodes)
</code> can be used to add nodes to the settings tab container.
</li>
3842 <li><code>attachmentData($objectType, $parentObjectID)
</code> can be used to set the data relevant for attachment support.
3843 By default, not attachment data is set, thus attachments are not supported.
</li>
3844 <li><code>getAttachmentField()
</code>,
<code>getPollContainer()
</code>,
<code>getSettingsContainer()
</code>,
<code>getSmiliesContainer()
</code>, and
<code>getWysiwygField()
</code> can be used to get the different components of the wysiwyg form container once the form has been built.
</li>
3845 <li><code>enablePreviewButton($enablePreviewButton)
</code> can be used to set whether the preview button for the message is shown or not.
3846 By default, the preview button is shown.
3847 This method is only relevant before the form is built.
3848 Afterwards, the preview button availability can not be changed.
</li>
3849 <li><code>getObjectId()
</code> returns the id of the edited object or
<code>0</code> if no object is edited.
</li>
3850 <li><code>getPreselect()
</code>,
<code>preselect($preselect)
</code> can be used to set the value of the wysiwyg tab menu's
<code>data-preselect
</code> attribute used to determine which tab is preselected.
3851 By default, the preselect is
<code>'true'
</code> which is used to pre-select the first tab.
</li>
3852 <li><code>messageObjectType($messageObjectType)
</code> can be used to set the message object type.
</li>
3853 <li><code>pollObjectType($pollObjectType)
</code> can be used to set the poll object type.
3854 By default, no poll object type is set, thus the poll form field container is not available.
</li>
3855 <li><code>supportMentions($supportMentions)
</code> can be used to set if mentions are supported.
3856 By default, mentions are not supported.
3857 This method is only relevant before the form is built.
3858 Afterwards, mention support can only be changed via the wysiwyg form field.
</li>
3859 <li><code>supportSmilies($supportSmilies)
</code> can be used to set if smilies are supported.
3860 By default, smilies are supported.
3861 This method is only relevant before the form is built.
3862 Afterwards, smiley availability can only be changed via changing the availability of the smilies form container.
</li>
3864 <h3 id=
"wysiwygattachmentformfield"><code>WysiwygAttachmentFormField
</code><a class=
"headerlink" href=
"#wysiwygattachmentformfield" title=
"Permanent link">#
</a></h3>
3865 <p><code>WysiwygAttachmentFormField
</code> provides attachment support for a wysiwyg editor via a tab in the menu below the editor.
3866 This class should not be used directly but only via
<code>WysiwygFormContainer
</code>.
3867 The methods
<code>attachmentHandler(AttachmentHandler $attachmentHandler)
</code> and
<code>getAttachmentHandler()
</code> can be used to set and get the
<code>AttachmentHandler
</code> object that is used for uploaded attachments.
</p>
3868 <h3 id=
"wysiwygpollformcontainer"><code>WysiwygPollFormContainer
</code><a class=
"headerlink" href=
"#wysiwygpollformcontainer" title=
"Permanent link">#
</a></h3>
3869 <p><code>WysiwygPollFormContainer
</code> provides poll support for a wysiwyg editor via a tab in the menu below the editor.
3870 This class should not be used directly but only via
<code>WysiwygFormContainer
</code>.
3871 <code>WysiwygPollFormContainer
</code> contains all form fields that are required to create polls and requires edited objects to implement
<code>IPollContainer
</code>.
</p>
3872 <p>The following methods are specific to this form container class:
</p>
3874 <li><code>getEndTimeField()
</code> returns the form field to set the end time of the poll once the form has been built.
</li>
3875 <li><code>getIsChangeableField()
</code> returns the form field to set if poll votes can be changed once the form has been built.
</li>
3876 <li><code>getIsPublicField()
</code> returns the form field to set if poll results are public once the form has been built.
</li>
3877 <li><code>getMaxVotesField()
</code> returns the form field to set the maximum number of votes once the form has been built.
</li>
3878 <li><code>getOptionsField()
</code> returns the form field to set the poll options once the form has been built.
</li>
3879 <li><code>getQuestionField()
</code> returns the form field to set the poll question once the form has been built.
</li>
3880 <li><code>getResultsRequireVoteField()
</code> returns the form field to set if viewing the poll results requires voting once the form has been built.
</li>
3881 <li><code>getSortByVotesField()
</code> returns the form field to set if the results are sorted by votes once the form has been built.
</li>
3883 <h3 id=
"wysiwygsmileyformcontainer"><code>WysiwygSmileyFormContainer
</code><a class=
"headerlink" href=
"#wysiwygsmileyformcontainer" title=
"Permanent link">#
</a></h3>
3884 <p><code>WysiwygSmileyFormContainer
</code> provides smiley support for a wysiwyg editor via a tab in the menu below the editor.
3885 This class should not be used directly but only via
<code>WysiwygFormContainer
</code>.
3886 <code>WysiwygSmileyFormContainer
</code> creates a sub-tab for each smiley category.
</p>
3887 <h4 id=
"wysiwygsmileyformnode"><code>WysiwygSmileyFormNode
</code><a class=
"headerlink" href=
"#wysiwygsmileyformnode" title=
"Permanent link">#
</a></h4>
3888 <p><code>WysiwygSmileyFormNode
</code> is contains the smilies of a specific category.
3889 This class should not be used directly but only via
<code>WysiwygSmileyFormContainer
</code>.
</p>
3890 <h3 id=
"example">Example
<a class=
"headerlink" href=
"#example" title=
"Permanent link">#
</a></h3>
3891 <p>The following code creates a WYSIWYG editor component for a
<code>message
</code> object property.
3892 As smilies are supported by default and an attachment object type is given, the tab menu below the editor has two tabs: “Smilies” and “Attachments”.
3893 Additionally, mentions and quotes are supported.
</p>
3894 <div class=
"highlight"><table class=
"highlighttable"><tr><td class=
"linenos"><div class=
"linenodiv"><pre><span></span><span class=
"normal">1</span>
3895 <span class=
"normal">2</span>
3896 <span class=
"normal">3</span>
3897 <span class=
"normal">4</span>
3898 <span class=
"normal">5</span>
3899 <span class=
"normal">6</span></pre></div></td><td class=
"code"><div><pre><span></span><code><span class=
"nx">WysiwygFormContainer
</span><span class=
"o">::
</span><span class=
"na">create
</span><span class=
"p">(
</span><span class=
"s1">'message
'</span><span class=
"p">)
</span>
3900 <span class=
"o">-
></span><span class=
"na">label
</span><span class=
"p">(
</span><span class=
"s1">'foo.bar.message
'</span><span class=
"p">)
</span>
3901 <span class=
"o">-
></span><span class=
"na">messageObjectType
</span><span class=
"p">(
</span><span class=
"s1">'com.example.foo.bar
'</span><span class=
"p">)
</span>
3902 <span class=
"o">-
></span><span class=
"na">attachmentData
</span><span class=
"p">(
</span><span class=
"s1">'com.example.foo.bar
'</span><span class=
"p">)
</span>
3903 <span class=
"o">-
></span><span class=
"na">supportMentions
</span><span class=
"p">()
</span>
3904 <span class=
"o">-
></span><span class=
"na">supportQuotes
</span><span class=
"p">()
</span>
3905 </code></pre></div></td></tr></table></div>
3906 <h3 id=
"wysiwygformfield"><code>WysiwygFormField
</code><a class=
"headerlink" href=
"#wysiwygformfield" title=
"Permanent link">#
</a></h3>
3907 <p><code>WysiwygFormField
</code> is used for wysiwyg editor form fields.
3908 This class should, in general, not be used directly but only via
<code>WysiwygFormContainer
</code>.
3909 The class implements
<code>IAttributeFormField
</code>,
<code>IMaximumLengthFormField
</code>,
<code>IMinimumLengthFormField
</code>, and
<code>IObjectTypeFormNode
</code> and requires an object type of the object type definition
<code>com.woltlab.wcf.message
</code>.
3910 The following methods are specific to this form field class:
</p>
3912 <li><code>autosaveId($autosaveId)
</code> and
<code>getAutosaveId()
</code> can be used enable automatically saving the current editor contents in the browser using the given id.
3913 An empty string signals that autosaving is disabled.
</li>
3914 <li><code>lastEditTime($lastEditTime)
</code> and
<code>getLastEditTime()
</code> can be used to set the last time the contents have been edited and saved so that the JavaScript can determine if the contents stored in the browser are older or newer.
3915 <code>0</code> signals that no last edit time has been set.
</li>
3917 <p><code>supportAttachments($supportAttachments)
</code> and
<code>supportsAttachments()
</code> can be used to set and check if the form field supports attachments.
</p>
3918 <div class=
"admonition warning">
3919 <p class=
"admonition-title">It is not sufficient to simply signal attachment support via these methods for attachments to work. These methods are relevant internally to signal the Javascript code that the editor supports attachments. Actual attachment support is provided by
<code>WysiwygAttachmentFormField
</code>.
</p>
3923 <p><code>supportMentions($supportMentions)
</code> and
<code>supportsMentions()
</code> can be used to set and check if the form field supports mentions of other users.
</p>
3926 <p><code>WysiwygFormField
</code> objects register a
<a href=
"../validation_data/#customformfielddataprocessor">custom form field data processor
</a> to add the relevant simple ACL data array into the
<code>$parameters
</code> array directly using the object property as the array key.
</p>
3927 <h3 id=
"twysiwygformnode"><code>TWysiwygFormNode
</code><a class=
"headerlink" href=
"#twysiwygformnode" title=
"Permanent link">#
</a></h3>
3928 <p>All form nodes that need to know the id of the
<code>WysiwygFormField
</code> field should use
<code>TWysiwygFormNode
</code>.
3929 This trait provides
<code>getWysiwygId()
</code> and
<code>wysiwygId($wysiwygId)
</code> to get and set the relevant wysiwyg editor id.
</p>
3930 <h2 id=
"application-specific-form-fields">Application-Specific Form Fields
<a class=
"headerlink" href=
"#application-specific-form-fields" title=
"Permanent link">#
</a></h2>
3931 <h3 id=
"woltlab-suite-forum">WoltLab Suite Forum
<a class=
"headerlink" href=
"#woltlab-suite-forum" title=
"Permanent link">#
</a></h3>
3932 <h4 id=
"multipleboardselectionformfield"><code>MultipleBoardSelectionFormField
</code><a class=
"headerlink" href=
"#multipleboardselectionformfield" title=
"Permanent link">#
</a></h4>
3933 <div class=
"admonition info">
3934 <p class=
"admonition-title">Only available since version
5.5.
</p>
3936 <p><code>MultipleBoardSelectionFormField
</code> is used to select multiple forums.
3937 The class implements
<code>IAttributeFormField
</code>,
<code>ICssClassFormField
</code>, and
<code>IImmutableFormField
</code>.
</p>
3938 <p>The field supports additional settings:
</p>
3940 <li><code>boardNodeList(BoardNodeList $boardNodeList): self
</code> and
<code>getBoardNodeList(): BoardNodeList
</code> are used to set and get the list of board nodes used to render the board selection.
3941 <code>boardNodeList(BoardNodeList $boardNodeList): self
</code> will automatically call
<code>readNodeTree()
</code> on the given board node list.
</li>
3942 <li><code>categoriesSelectable(bool $categoriesSelectable = true): self
</code> and
<code>areCategoriesSelectable(): bool
</code> are used to set and check if the categories in the board node list are selectable.
3943 By default, categories are selectable.
3944 This option is useful if only actual boards, in which threads can be posted, should be selectable but the categories must still be shown so that the overall forum structure is still properly shown.
</li>
3945 <li><code>supportExternalLinks(bool $supportExternalLinks): self
</code> and
<code>supportsExternalLinks(): bool
</code> are used to set and check if external links will be shown in the selection list.
3946 By default, external links are shown.
3947 Like in the example given before, in cases where only actual boards, in which threads can be posted, are relevant, this option allows to exclude external links.
</li>
3949 <h2 id=
"single-use-form-fields">Single-Use Form Fields
<a class=
"headerlink" href=
"#single-use-form-fields" title=
"Permanent link">#
</a></h2>
3950 <p>The following form fields are specific for certain forms and hardly reusable in other contexts.
</p>
3951 <h3 id=
"bbcodeattributesformfield"><code>BBCodeAttributesFormField
</code><a class=
"headerlink" href=
"#bbcodeattributesformfield" title=
"Permanent link">#
</a></h3>
3952 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the attributes of a BBCode.
</p>
3953 <h3 id=
"devtoolsprojectexcludedpackagesformfield"><code>DevtoolsProjectExcludedPackagesFormField
</code><a class=
"headerlink" href=
"#devtoolsprojectexcludedpackagesformfield" title=
"Permanent link">#
</a></h3>
3954 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the excluded packages of a devtools project.
</p>
3955 <h3 id=
"devtoolsprojectinstructionsformfield"><code>DevtoolsProjectInstructionsFormField
</code><a class=
"headerlink" href=
"#devtoolsprojectinstructionsformfield" title=
"Permanent link">#
</a></h3>
3956 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the installation and update instructions of a devtools project.
</p>
3957 <h3 id=
"devtoolsprojectoptionalpackagesformfield"><code>DevtoolsProjectOptionalPackagesFormField
</code><a class=
"headerlink" href=
"#devtoolsprojectoptionalpackagesformfield" title=
"Permanent link">#
</a></h3>
3958 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the optional packages of a devtools project.
</p>
3959 <h3 id=
"devtoolsprojectrequiredpackagesformfield"><code>DevtoolsProjectRequiredPackagesFormField
</code><a class=
"headerlink" href=
"#devtoolsprojectrequiredpackagesformfield" title=
"Permanent link">#
</a></h3>
3960 <p><code>DevtoolsProjectExcludedPackagesFormField
</code> is a form field for setting the required packages of a devtools project.
</p>
3963 <div class=
"md-source-file">
3985 <footer class=
"md-footer">
3987 <div class=
"md-footer-meta md-typeset">
3988 <div class=
"md-footer-meta__inner md-grid">
3989 <div class=
"md-copyright">
3991 <div class=
"md-copyright__highlight">
3992 Copyright ©
2020 WoltLab GmbH
3997 <a href=
"https://squidfunk.github.io/mkdocs-material/" target=
"_blank" rel=
"noopener">
4003 <div class=
"md-copyright">
4004 <a href=
"https://www.woltlab.com/legal-notice/">Legal Notice
</a>
4005 <a href=
"https://www.woltlab.com/privacy-policy/">Privacy Policy
</a>
4013 <div class=
"md-dialog" data-md-component=
"dialog">
4014 <div class=
"md-dialog__inner md-typeset"></div>
4017 <script id=
"__config" type=
"application/json">{
"base":
"../../../..",
"features": [
"navigation.tracking"],
"search":
"../../../../assets/javascripts/workers/search.208ed371.min.js",
"translations": {
"clipboard.copied":
"Copied to clipboard",
"clipboard.copy":
"Copy to clipboard",
"search.result.more.one":
"1 more on this page",
"search.result.more.other":
"# more on this page",
"search.result.none":
"No matching documents",
"search.result.one":
"1 matching document",
"search.result.other":
"# matching documents",
"search.result.placeholder":
"Type to start searching",
"search.result.term.missing":
"Missing",
"select.version":
"Select version"},
"version": {
"provider":
"mike"}}
</script>
4020 <script src=
"../../../../assets/javascripts/bundle.2a6f1dda.min.js"></script>