Deployed 33caa8a to 5.4 with MkDocs 1.1.2 and mike 0.5.5
[GitHub/WoltLab/woltlab.github.io.git] / latest / php / api / form_builder / form_fields / index.html
CommitLineData
0c5338dd
TD
1
2<!doctype html>
3<html lang="en" class="no-js">
4 <head>
5
6 <meta charset="utf-8">
7 <meta name="viewport" content="width=device-width,initial-scale=1">
8
9
10
11
12 <link rel="shortcut icon" href="../../../../assets/default.favicon.ico">
fb88dc6e 13 <meta name="generator" content="mkdocs-1.1.2, mkdocs-material-7.0.5">
0c5338dd
TD
14
15
16
17 <title>Fields - WoltLab Suite Documentation</title>
18
19
20
fb88dc6e 21 <link rel="stylesheet" href="../../../../assets/stylesheets/main.77f3fd56.min.css">
0c5338dd
TD
22
23
24 <link rel="stylesheet" href="../../../../assets/stylesheets/palette.7fa14f5b.min.css">
25
26
27
28 <meta name="theme-color" content="#009485">
29
30
31
32
33
fd8430cb
WG
34
35
0c5338dd
TD
36
37
38 <link rel="stylesheet" href="../../../../stylesheets/extra.css">
39
40
41
42
43
44 </head>
45
46
47
48
49
50
51
52 <body dir="ltr" data-md-color-scheme="" data-md-color-primary="teal" data-md-color-accent="">
53
54
55
56 <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
57 <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
58 <label class="md-overlay" for="__drawer"></label>
59 <div data-md-component="skip">
60
61
62 <a href="#form-builder-fields" class="md-skip">
63 Skip to content
64 </a>
65
66 </div>
67 <div data-md-component="announce">
68
69 <aside class="md-announce">
70 <div class="md-announce__inner md-grid md-typeset">
71
72 <a href="https://www.woltlab.com">Back to <strong>woltlab.com</strong></a>
73
74 </div>
75 </aside>
76
77 </div>
78
79
80
81<header class="md-header" data-md-component="header">
82 <nav class="md-header__inner md-grid" aria-label="Header">
83 <a href="../../../.." title="WoltLab Suite Documentation" class="md-header__button md-logo" aria-label="WoltLab Suite Documentation">
84
85 <img src="../../../../assets/logo.png" alt="logo">
86
87 </a>
88 <label class="md-header__button md-icon" for="__drawer">
89 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
90 </label>
91 <div class="md-header__title" data-md-component="header-title">
92 <div class="md-header__ellipsis">
93 <div class="md-header__topic">
94 <span class="md-ellipsis">
95 WoltLab Suite Documentation
96 </span>
97 </div>
98 <div class="md-header__topic" data-md-component="header-topic">
99 <span class="md-ellipsis">
100
101 Fields
102
103 </span>
104 </div>
105 </div>
106 </div>
107 <div class="md-header__options">
108
109 </div>
110
a3639e76
WG
111 <label class="md-header__button md-icon" for="__search">
112 <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>
113 </label>
114
115<div class="md-search" data-md-component="search" role="dialog">
116 <label class="md-search__overlay" for="__search"></label>
117 <div class="md-search__inner" role="search">
118 <form class="md-search__form" name="search">
119 <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" data-md-state="active" required>
120 <label class="md-search__icon md-icon" for="__search">
121 <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>
122 <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>
123 </label>
124 <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
125 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.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>
126 </button>
127 </form>
128 <div class="md-search__output">
129 <div class="md-search__scrollwrap" data-md-scrollfix>
130 <div class="md-search-result" data-md-component="search-result">
131 <div class="md-search-result__meta">
132 Initializing search
133 </div>
134 <ol class="md-search-result__list"></ol>
135 </div>
136 </div>
137 </div>
138 </div>
139</div>
140
0c5338dd 141
7124f4cb
WG
142 <div class="md-header__source">
143
144<a href="https://github.com/WoltLab/docs.woltlab.com/" title="Go to repository" class="md-source" data-md-component="source">
145 <div class="md-source__icon md-icon">
146
147 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05L244 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>
148 </div>
149 <div class="md-source__repository">
150 GitHub
151 </div>
152</a>
153 </div>
154
0c5338dd
TD
155 </nav>
156</header>
157
158 <div class="md-container" data-md-component="container">
159
160
161
162
163 <main class="md-main" data-md-component="main">
164 <div class="md-main__inner md-grid">
165
166
167
168 <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
169 <div class="md-sidebar__scrollwrap">
170 <div class="md-sidebar__inner">
171
172
173
174
175
176<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
177 <label class="md-nav__title" for="__drawer">
178 <a href="../../../.." title="WoltLab Suite Documentation" class="md-nav__button md-logo" aria-label="WoltLab Suite Documentation">
179
180 <img src="../../../../assets/logo.png" alt="logo">
181
182 </a>
183 WoltLab Suite Documentation
184 </label>
185
7124f4cb
WG
186 <div class="md-nav__source">
187
188<a href="https://github.com/WoltLab/docs.woltlab.com/" title="Go to repository" class="md-source" data-md-component="source">
189 <div class="md-source__icon md-icon">
190
191 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05L244 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>
192 </div>
193 <div class="md-source__repository">
194 GitHub
195 </div>
196</a>
197 </div>
198
0c5338dd
TD
199 <ul class="md-nav__list" data-md-scrollfix>
200
201
202
203
204
205
206
207
208 <li class="md-nav__item">
209 <a href="../../../../getting-started/" class="md-nav__link">
210 Getting Started
211 </a>
212 </li>
213
214
215
216
217
218
219
220
221
222
223
224
225
226 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
227
228
229 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_2" type="checkbox" id="__nav_2" checked>
230
231 <label class="md-nav__link" for="__nav_2">
232 PHP API
233 <span class="md-nav__icon md-icon"></span>
234 </label>
235 <nav class="md-nav" aria-label="PHP API" data-md-level="1">
236 <label class="md-nav__title" for="__nav_2">
237 <span class="md-nav__icon md-icon"></span>
238 PHP API
239 </label>
240 <ul class="md-nav__list" data-md-scrollfix>
241
242
243
244
245
246 <li class="md-nav__item">
247 <a href="../../../pages/" class="md-nav__link">
248 Pages
249 </a>
250 </li>
251
252
253
254
255
256
257
258 <li class="md-nav__item">
259 <a href="../../../database-objects/" class="md-nav__link">
260 Database Objects
261 </a>
262 </li>
263
264
265
266
267
268
269
270 <li class="md-nav__item">
271 <a href="../../../database-access/" class="md-nav__link">
272 Database Access
273 </a>
274 </li>
275
276
277
278
279
280
281
282 <li class="md-nav__item">
283 <a href="../../../exceptions/" class="md-nav__link">
284 Exceptions
285 </a>
286 </li>
287
288
289
290
291
292
293
294
295
296
297 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
298
299
300 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_2_5" type="checkbox" id="__nav_2_5" checked>
301
302 <label class="md-nav__link" for="__nav_2_5">
303 API
304 <span class="md-nav__icon md-icon"></span>
305 </label>
306 <nav class="md-nav" aria-label="API" data-md-level="2">
307 <label class="md-nav__title" for="__nav_2_5">
308 <span class="md-nav__icon md-icon"></span>
309 API
310 </label>
311 <ul class="md-nav__list" data-md-scrollfix>
312
313
314
315
316
317 <li class="md-nav__item">
318 <a href="../../caches/" class="md-nav__link">
319 Caches
320 </a>
321 </li>
322
323
324
325
326
327
328
329 <li class="md-nav__item">
330 <a href="../../comments/" class="md-nav__link">
331 Comments
332 </a>
333 </li>
334
335
336
337
338
339
340
341 <li class="md-nav__item">
342 <a href="../../cronjobs/" class="md-nav__link">
343 Cronjobs
344 </a>
345 </li>
346
347
348
349
350
351
352
353 <li class="md-nav__item">
354 <a href="../../events/" class="md-nav__link">
355 Events
356 </a>
357 </li>
358
359
360
361
362
363
364
365
366
367
368 <li class="md-nav__item md-nav__item--active md-nav__item--nested">
369
370
371 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_2_5_5" type="checkbox" id="__nav_2_5_5" checked>
372
373 <label class="md-nav__link" for="__nav_2_5_5">
374 Form Builder
375 <span class="md-nav__icon md-icon"></span>
376 </label>
377 <nav class="md-nav" aria-label="Form Builder" data-md-level="3">
378 <label class="md-nav__title" for="__nav_2_5_5">
379 <span class="md-nav__icon md-icon"></span>
380 Form Builder
381 </label>
382 <ul class="md-nav__list" data-md-scrollfix>
383
384
385
386
387
388 <li class="md-nav__item">
389 <a href="../overview/" class="md-nav__link">
390 Overview
391 </a>
392 </li>
393
394
395
396
397
398
399
400 <li class="md-nav__item">
401 <a href="../structure/" class="md-nav__link">
402 Structure
403 </a>
404 </li>
405
406
407
408
409
410
411
412
413
414 <li class="md-nav__item md-nav__item--active">
415
416 <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
417
418
419
420
421 <label class="md-nav__link md-nav__link--active" for="__toc">
422 Fields
423 <span class="md-nav__icon md-icon"></span>
424 </label>
425
426 <a href="./" class="md-nav__link md-nav__link--active">
427 Fields
428 </a>
429
430
431<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
432
433
434
435
436
437 <label class="md-nav__title" for="__toc">
438 <span class="md-nav__icon md-icon"></span>
439 Table of contents
440 </label>
441 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
442
443 <li class="md-nav__item">
444 <a href="#abstract-form-fields" class="md-nav__link">
445 Abstract Form Fields
446 </a>
447
448 <nav class="md-nav" aria-label="Abstract Form Fields">
449 <ul class="md-nav__list">
450
451 <li class="md-nav__item">
452 <a href="#abstractformfield" class="md-nav__link">
453 AbstractFormField
454 </a>
455
456</li>
457
458 <li class="md-nav__item">
459 <a href="#abstractnumericformfield" class="md-nav__link">
460 AbstractNumericFormField
461 </a>
462
463</li>
464
465 </ul>
466 </nav>
467
468</li>
469
470 <li class="md-nav__item">
471 <a href="#general-form-fields" class="md-nav__link">
472 General Form Fields
473 </a>
474
475 <nav class="md-nav" aria-label="General Form Fields">
476 <ul class="md-nav__list">
477
478 <li class="md-nav__item">
479 <a href="#booleanformfield" class="md-nav__link">
480 BooleanFormField
481 </a>
482
483</li>
484
485 <li class="md-nav__item">
486 <a href="#checkboxformfield" class="md-nav__link">
487 CheckboxFormField
488 </a>
489
490</li>
491
492 <li class="md-nav__item">
493 <a href="#classnameformfield" class="md-nav__link">
494 ClassNameFormField
495 </a>
496
497</li>
498
499 <li class="md-nav__item">
500 <a href="#dateformfield" class="md-nav__link">
501 DateFormField
502 </a>
503
504</li>
505
506 <li class="md-nav__item">
507 <a href="#descriptionformfield" class="md-nav__link">
508 DescriptionFormField
509 </a>
510
511</li>
512
513 <li class="md-nav__item">
514 <a href="#emailformfield" class="md-nav__link">
515 EmailFormField
516 </a>
517
518</li>
519
520 <li class="md-nav__item">
521 <a href="#floatformfield" class="md-nav__link">
522 FloatFormField
523 </a>
524
525</li>
526
527 <li class="md-nav__item">
528 <a href="#iconformfield" class="md-nav__link">
529 IconFormField
530 </a>
531
532</li>
533
534 <li class="md-nav__item">
535 <a href="#integerformfield" class="md-nav__link">
536 IntegerFormField
537 </a>
538
539</li>
540
541 <li class="md-nav__item">
542 <a href="#isdisabledformfield" class="md-nav__link">
543 IsDisabledFormField
544 </a>
545
546</li>
547
548 <li class="md-nav__item">
549 <a href="#itemlistformfield" class="md-nav__link">
550 ItemListFormField
551 </a>
552
553</li>
554
555 <li class="md-nav__item">
556 <a href="#multilinetextformfield" class="md-nav__link">
557 MultilineTextFormField
558 </a>
559
560</li>
561
562 <li class="md-nav__item">
563 <a href="#multipleselectionformfield" class="md-nav__link">
564 MultipleSelectionFormField
565 </a>
566
567</li>
568
569 <li class="md-nav__item">
570 <a href="#radiobuttonformfield" class="md-nav__link">
571 RadioButtonFormField
572 </a>
573
574</li>
575
576 <li class="md-nav__item">
577 <a href="#ratingformfield" class="md-nav__link">
578 RatingFormField
579 </a>
580
581</li>
582
583 <li class="md-nav__item">
584 <a href="#showorderformfield" class="md-nav__link">
585 ShowOrderFormField
586 </a>
587
588</li>
589
590 <li class="md-nav__item">
591 <a href="#singleselectionformfield" class="md-nav__link">
592 SingleSelectionFormField
593 </a>
594
595</li>
596
597 <li class="md-nav__item">
598 <a href="#sortorderformfield" class="md-nav__link">
599 SortOrderFormField
600 </a>
601
602</li>
603
604 <li class="md-nav__item">
605 <a href="#textformfield" class="md-nav__link">
606 TextFormField
607 </a>
608
609</li>
610
611 <li class="md-nav__item">
612 <a href="#titleformfield" class="md-nav__link">
613 TitleFormField
614 </a>
615
616</li>
617
618 <li class="md-nav__item">
619 <a href="#urlformfield" class="md-nav__link">
620 UrlFormField
621 </a>
622
623</li>
624
625 </ul>
626 </nav>
627
628</li>
629
630 <li class="md-nav__item">
631 <a href="#specific-fields" class="md-nav__link">
632 Specific Fields
633 </a>
634
635 <nav class="md-nav" aria-label="Specific Fields">
636 <ul class="md-nav__list">
637
638 <li class="md-nav__item">
639 <a href="#aclformfield" class="md-nav__link">
640 AclFormField
641 </a>
642
643</li>
644
645 <li class="md-nav__item">
646 <a href="#buttonformfield" class="md-nav__link">
647 ButtonFormField
648 </a>
649
650</li>
651
652 <li class="md-nav__item">
653 <a href="#captchaformfield" class="md-nav__link">
654 CaptchaFormField
655 </a>
656
657</li>
658
659 <li class="md-nav__item">
660 <a href="#contentlanguageformfield" class="md-nav__link">
661 ContentLanguageFormField
662 </a>
663
664</li>
665
666 <li class="md-nav__item">
667 <a href="#labelformfield" class="md-nav__link">
668 LabelFormField
669 </a>
670
671</li>
672
673 <li class="md-nav__item">
674 <a href="#optionformfield" class="md-nav__link">
675 OptionFormField
676 </a>
677
678</li>
679
680 <li class="md-nav__item">
681 <a href="#simpleaclformfield" class="md-nav__link">
682 SimpleAclFormField
683 </a>
684
685</li>
686
687 <li class="md-nav__item">
688 <a href="#singlemediaselectionformfield" class="md-nav__link">
689 SingleMediaSelectionFormField
690 </a>
691
692</li>
693
694 <li class="md-nav__item">
695 <a href="#tagformfield" class="md-nav__link">
696 TagFormField
697 </a>
698
699</li>
700
701 <li class="md-nav__item">
702 <a href="#uploadformfield" class="md-nav__link">
703 UploadFormField
704 </a>
705
706 <nav class="md-nav" aria-label="UploadFormField">
707 <ul class="md-nav__list">
708
709 <li class="md-nav__item">
710 <a href="#provide-value-from-database-object" class="md-nav__link">
711 Provide value from database object
712 </a>
713
714</li>
715
716 <li class="md-nav__item">
717 <a href="#process-files" class="md-nav__link">
718 Process files
719 </a>
720
721</li>
722
723 </ul>
724 </nav>
725
726</li>
727
728 <li class="md-nav__item">
729 <a href="#userformfield" class="md-nav__link">
730 UserFormField
731 </a>
732
733</li>
734
735 <li class="md-nav__item">
736 <a href="#userpasswordfield" class="md-nav__link">
737 UserPasswordField
738 </a>
739
740</li>
741
742 <li class="md-nav__item">
743 <a href="#usergroupoptionformfield" class="md-nav__link">
744 UserGroupOptionFormField
745 </a>
746
747</li>
748
749 <li class="md-nav__item">
750 <a href="#usernameformfield" class="md-nav__link">
751 UsernameFormField
752 </a>
753
754</li>
755
756 </ul>
757 </nav>
758
759</li>
760
761 <li class="md-nav__item">
762 <a href="#wysiwyg-form-container" class="md-nav__link">
763 Wysiwyg form container
764 </a>
765
766 <nav class="md-nav" aria-label="Wysiwyg form container">
767 <ul class="md-nav__list">
768
769 <li class="md-nav__item">
770 <a href="#wysiwygattachmentformfield" class="md-nav__link">
771 WysiwygAttachmentFormField
772 </a>
773
774</li>
775
776 <li class="md-nav__item">
777 <a href="#wysiwygpollformcontainer" class="md-nav__link">
778 WysiwygPollFormContainer
779 </a>
780
781</li>
782
783 <li class="md-nav__item">
784 <a href="#wysiwygsmileyformcontainer" class="md-nav__link">
785 WysiwygSmileyFormContainer
786 </a>
787
788 <nav class="md-nav" aria-label="WysiwygSmileyFormContainer">
789 <ul class="md-nav__list">
790
791 <li class="md-nav__item">
792 <a href="#wysiwygsmileyformnode" class="md-nav__link">
793 WysiwygSmileyFormNode
794 </a>
795
796</li>
797
798 </ul>
799 </nav>
800
801</li>
802
803 <li class="md-nav__item">
804 <a href="#example" class="md-nav__link">
805 Example
806 </a>
807
808</li>
809
810 <li class="md-nav__item">
811 <a href="#wysiwygformfield" class="md-nav__link">
812 WysiwygFormField
813 </a>
814
815</li>
816
817 <li class="md-nav__item">
818 <a href="#twysiwygformnode" class="md-nav__link">
819 TWysiwygFormNode
820 </a>
821
822</li>
823
824 </ul>
825 </nav>
826
827</li>
828
829 <li class="md-nav__item">
830 <a href="#single-use-form-fields" class="md-nav__link">
831 Single-Use Form Fields
832 </a>
833
834 <nav class="md-nav" aria-label="Single-Use Form Fields">
835 <ul class="md-nav__list">
836
837 <li class="md-nav__item">
838 <a href="#bbcodeattributesformfield" class="md-nav__link">
839 BBCodeAttributesFormField
840 </a>
841
842</li>
843
844 <li class="md-nav__item">
845 <a href="#devtoolsprojectexcludedpackagesformfield" class="md-nav__link">
846 DevtoolsProjectExcludedPackagesFormField
847 </a>
848
849</li>
850
851 <li class="md-nav__item">
852 <a href="#devtoolsprojectinstructionsformfield" class="md-nav__link">
853 DevtoolsProjectInstructionsFormField
854 </a>
855
856</li>
857
858 <li class="md-nav__item">
859 <a href="#devtoolsprojectoptionalpackagesformfield" class="md-nav__link">
860 DevtoolsProjectOptionalPackagesFormField
861 </a>
862
863</li>
864
865 <li class="md-nav__item">
866 <a href="#devtoolsprojectrequiredpackagesformfield" class="md-nav__link">
867 DevtoolsProjectRequiredPackagesFormField
868 </a>
869
870</li>
871
872 </ul>
873 </nav>
874
875</li>
876
877 </ul>
878
879</nav>
880
881 </li>
882
883
884
885
886
887
888
889 <li class="md-nav__item">
890 <a href="../validation_data/" class="md-nav__link">
891 Validation and Data
892 </a>
893 </li>
894
895
896
897
898
899
900
901 <li class="md-nav__item">
902 <a href="../dependencies/" class="md-nav__link">
903 Dependencies
904 </a>
905 </li>
906
907
908
909 </ul>
910 </nav>
911 </li>
912
913
914
915
916
917
918
919 <li class="md-nav__item">
920 <a href="../../package_installation_plugins/" class="md-nav__link">
921 Package Installation Plugins
922 </a>
923 </li>
924
925
926
927
928
929
930
931 <li class="md-nav__item">
932 <a href="../../user_activity_points/" class="md-nav__link">
933 User Activity Points
934 </a>
935 </li>
936
937
938
939
940
941
942
943 <li class="md-nav__item">
944 <a href="../../user_notifications/" class="md-nav__link">
945 User Notifications
946 </a>
947 </li>
948
949
950
951
952
953
954
955 <li class="md-nav__item">
956 <a href="../../sitemaps/" class="md-nav__link">
957 Sitemaps
958 </a>
959 </li>
960
961
962
963 </ul>
964 </nav>
965 </li>
966
967
968
969
970
971
972
973 <li class="md-nav__item">
974 <a href="../../../code-style/" class="md-nav__link">
975 Code Style
976 </a>
977 </li>
978
979
980
981
982
983
984
985 <li class="md-nav__item">
986 <a href="../../../apps/" class="md-nav__link">
987 Apps
988 </a>
989 </li>
990
991
992
993
994
995
996
997 <li class="md-nav__item">
998 <a href="../../../gdpr/" class="md-nav__link">
999 GDPR
1000 </a>
1001 </li>
1002
1003
1004
1005 </ul>
1006 </nav>
1007 </li>
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019 <li class="md-nav__item md-nav__item--nested">
1020
1021
1022 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" >
1023
1024 <label class="md-nav__link" for="__nav_3">
1025 Languages, Templates & CSS
1026 <span class="md-nav__icon md-icon"></span>
1027 </label>
1028 <nav class="md-nav" aria-label="Languages, Templates & CSS" data-md-level="1">
1029 <label class="md-nav__title" for="__nav_3">
1030 <span class="md-nav__icon md-icon"></span>
1031 Languages, Templates & CSS
1032 </label>
1033 <ul class="md-nav__list" data-md-scrollfix>
1034
1035
1036
1037
1038
1039 <li class="md-nav__item">
1040 <a href="../../../../view/languages/" class="md-nav__link">
1041 Languages
1042 </a>
1043 </li>
1044
1045
1046
1047
1048
1049
1050
1051 <li class="md-nav__item">
1052 <a href="../../../../view/templates/" class="md-nav__link">
1053 Templates
1054 </a>
1055 </li>
1056
1057
1058
1059
1060
1061
1062
1063 <li class="md-nav__item">
1064 <a href="../../../../view/css/" class="md-nav__link">
1065 CSS
1066 </a>
1067 </li>
1068
1069
1070
1071 </ul>
1072 </nav>
1073 </li>
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085 <li class="md-nav__item md-nav__item--nested">
1086
1087
1088 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
1089
1090 <label class="md-nav__link" for="__nav_4">
1091 JavaScript API
1092 <span class="md-nav__icon md-icon"></span>
1093 </label>
1094 <nav class="md-nav" aria-label="JavaScript API" data-md-level="1">
1095 <label class="md-nav__title" for="__nav_4">
1096 <span class="md-nav__icon md-icon"></span>
1097 JavaScript API
1098 </label>
1099 <ul class="md-nav__list" data-md-scrollfix>
1100
1101
1102
1103
1104
1105 <li class="md-nav__item">
1106 <a href="../../../../javascript/general-usage/" class="md-nav__link">
1107 General Usage
1108 </a>
1109 </li>
1110
1111
1112
1113
1114
1115
1116
1117
1118 <li class="md-nav__item md-nav__item--nested">
1119
1120
1121 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4_2" type="checkbox" id="__nav_4_2" >
1122
1123 <label class="md-nav__link" for="__nav_4_2">
1124 New API
1125 <span class="md-nav__icon md-icon"></span>
1126 </label>
1127 <nav class="md-nav" aria-label="New API" data-md-level="2">
1128 <label class="md-nav__title" for="__nav_4_2">
1129 <span class="md-nav__icon md-icon"></span>
1130 New API
1131 </label>
1132 <ul class="md-nav__list" data-md-scrollfix>
1133
1134
1135
1136
1137
1138 <li class="md-nav__item">
1139 <a href="../../../../javascript/new-api_writing-a-module/" class="md-nav__link">
1140 Writing a module
1141 </a>
1142 </li>
1143
1144
1145
1146
1147
1148
1149
1150 <li class="md-nav__item">
1151 <a href="../../../../javascript/new-api_data-structures/" class="md-nav__link">
1152 Data Structures
1153 </a>
1154 </li>
1155
1156
1157
1158
1159
1160
1161
1162 <li class="md-nav__item">
1163 <a href="../../../../javascript/new-api_core/" class="md-nav__link">
1164 Core Functions
1165 </a>
1166 </li>
1167
1168
1169
1170
1171
1172
1173
1174 <li class="md-nav__item">
1175 <a href="../../../../javascript/new-api_dom/" class="md-nav__link">
1176 DOM
1177 </a>
1178 </li>
1179
1180
1181
1182
1183
1184
1185
1186 <li class="md-nav__item">
1187 <a href="../../../../javascript/new-api_events/" class="md-nav__link">
1188 Event Handling
1189 </a>
1190 </li>
1191
1192
1193
1194
1195
1196
1197
1198 <li class="md-nav__item">
1199 <a href="../../../../javascript/new-api_ajax/" class="md-nav__link">
1200 Ajax
1201 </a>
1202 </li>
1203
1204
1205
1206
1207
1208
1209
1210 <li class="md-nav__item">
1211 <a href="../../../../javascript/new-api_dialogs/" class="md-nav__link">
1212 Dialogs
1213 </a>
1214 </li>
1215
1216
1217
1218
1219
1220
1221
1222 <li class="md-nav__item">
1223 <a href="../../../../javascript/new-api_browser/" class="md-nav__link">
1224 Browser and Screen Sizes
1225 </a>
1226 </li>
1227
1228
1229
1230
1231
1232
1233
1234 <li class="md-nav__item">
1235 <a href="../../../../javascript/new-api_ui/" class="md-nav__link">
1236 User Interface
1237 </a>
1238 </li>
1239
1240
1241
1242 </ul>
1243 </nav>
1244 </li>
1245
1246
1247
1248
1249
1250
1251
1252 <li class="md-nav__item">
1253 <a href="../../../../javascript/legacy-api/" class="md-nav__link">
1254 Legacy API
1255 </a>
1256 </li>
1257
1258
1259
1260
1261
1262
1263
1264 <li class="md-nav__item">
1265 <a href="../../../../javascript/helper-functions/" class="md-nav__link">
1266 Helper Functions
1267 </a>
1268 </li>
1269
1270
1271
1272
1273
1274
1275
1276 <li class="md-nav__item">
1277 <a href="../../../../javascript/code-snippets/" class="md-nav__link">
1278 Code Snippets
1279 </a>
1280 </li>
1281
1282
1283
1284 </ul>
1285 </nav>
1286 </li>
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298 <li class="md-nav__item md-nav__item--nested">
1299
1300
1301 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
1302
1303 <label class="md-nav__link" for="__nav_5">
1304 Package Components
1305 <span class="md-nav__icon md-icon"></span>
1306 </label>
1307 <nav class="md-nav" aria-label="Package Components" data-md-level="1">
1308 <label class="md-nav__title" for="__nav_5">
1309 <span class="md-nav__icon md-icon"></span>
1310 Package Components
1311 </label>
1312 <ul class="md-nav__list" data-md-scrollfix>
1313
1314
1315
1316
1317
1318 <li class="md-nav__item">
1319 <a href="../../../../package/package-xml/" class="md-nav__link">
1320 package.xml
1321 </a>
1322 </li>
1323
1324
1325
1326
1327
1328
1329
1330
1331 <li class="md-nav__item md-nav__item--nested">
1332
1333
1334 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5_2" type="checkbox" id="__nav_5_2" >
1335
1336 <label class="md-nav__link" for="__nav_5_2">
1337 PIPs
1338 <span class="md-nav__icon md-icon"></span>
1339 </label>
1340 <nav class="md-nav" aria-label="PIPs" data-md-level="2">
1341 <label class="md-nav__title" for="__nav_5_2">
1342 <span class="md-nav__icon md-icon"></span>
1343 PIPs
1344 </label>
1345 <ul class="md-nav__list" data-md-scrollfix>
1346
1347
1348
1349
1350
1351 <li class="md-nav__item">
1352 <a href="../../../../package/pip/" class="md-nav__link">
1353 Overview
1354 </a>
1355 </li>
1356
1357
1358
1359
1360
1361
1362
1363 <li class="md-nav__item">
1364 <a href="../../../../package/pip/acl-option/" class="md-nav__link">
1365 aclOption
1366 </a>
1367 </li>
1368
1369
1370
1371
1372
1373
1374
1375 <li class="md-nav__item">
1376 <a href="../../../../package/pip/acp-menu/" class="md-nav__link">
1377 acpMenu
1378 </a>
1379 </li>
1380
1381
1382
1383
1384
1385
1386
1387 <li class="md-nav__item">
1388 <a href="../../../../package/pip/acp-search-provider/" class="md-nav__link">
1389 acpSearchProvider
1390 </a>
1391 </li>
1392
1393
1394
1395
1396
1397
1398
1399 <li class="md-nav__item">
1400 <a href="../../../../package/pip/acp-template/" class="md-nav__link">
1401 acpTemplate
1402 </a>
1403 </li>
1404
1405
1406
1407
1408
1409
1410
1411 <li class="md-nav__item">
1412 <a href="../../../../package/pip/bbcode/" class="md-nav__link">
1413 bbcode
1414 </a>
1415 </li>
1416
1417
1418
1419
1420
1421
1422
1423 <li class="md-nav__item">
1424 <a href="../../../../package/pip/box/" class="md-nav__link">
1425 box
1426 </a>
1427 </li>
1428
1429
1430
1431
1432
1433
1434
1435 <li class="md-nav__item">
1436 <a href="../../../../package/pip/clipboard-action/" class="md-nav__link">
1437 clipboardAction
1438 </a>
1439 </li>
1440
1441
1442
1443
1444
1445
1446
1447 <li class="md-nav__item">
1448 <a href="../../../../package/pip/core-object/" class="md-nav__link">
1449 coreObject
1450 </a>
1451 </li>
1452
1453
1454
1455
1456
1457
1458
1459 <li class="md-nav__item">
1460 <a href="../../../../package/pip/cronjob/" class="md-nav__link">
1461 cronjob
1462 </a>
1463 </li>
1464
1465
1466
1467
1468
1469
1470
1471 <li class="md-nav__item">
1472 <a href="../../../../package/pip/event-listener/" class="md-nav__link">
1473 eventListener
1474 </a>
1475 </li>
1476
1477
1478
1479
1480
1481
1482
1483 <li class="md-nav__item">
1484 <a href="../../../../package/pip/file/" class="md-nav__link">
1485 file
1486 </a>
1487 </li>
1488
1489
1490
1491
1492
1493
1494
1495 <li class="md-nav__item">
1496 <a href="../../../../package/pip/language/" class="md-nav__link">
1497 language
1498 </a>
1499 </li>
1500
1501
1502
1503
1504
1505
1506
1507 <li class="md-nav__item">
1508 <a href="../../../../package/pip/media-provider/" class="md-nav__link">
1509 mediaProvider
1510 </a>
1511 </li>
1512
1513
1514
1515
1516
1517
1518
1519 <li class="md-nav__item">
1520 <a href="../../../../package/pip/menu/" class="md-nav__link">
1521 menu
1522 </a>
1523 </li>
1524
1525
1526
1527
1528
1529
1530
1531 <li class="md-nav__item">
1532 <a href="../../../../package/pip/menu-item/" class="md-nav__link">
1533 menuItem
1534 </a>
1535 </li>
1536
1537
1538
1539
1540
1541
1542
1543 <li class="md-nav__item">
1544 <a href="../../../../package/pip/object-type/" class="md-nav__link">
1545 objectType
1546 </a>
1547 </li>
1548
1549
1550
1551
1552
1553
1554
1555 <li class="md-nav__item">
1556 <a href="../../../../package/pip/object-type-definition/" class="md-nav__link">
1557 objectTypeDefinition
1558 </a>
1559 </li>
1560
1561
1562
1563
1564
1565
1566
1567 <li class="md-nav__item">
1568 <a href="../../../../package/pip/option/" class="md-nav__link">
1569 option
1570 </a>
1571 </li>
1572
1573
1574
1575
1576
1577
1578
1579 <li class="md-nav__item">
1580 <a href="../../../../package/pip/page/" class="md-nav__link">
1581 page
1582 </a>
1583 </li>
1584
1585
1586
1587
1588
1589
1590
1591 <li class="md-nav__item">
1592 <a href="../../../../package/pip/pip/" class="md-nav__link">
1593 pip
1594 </a>
1595 </li>
1596
1597
1598
1599
1600
1601
1602
1603 <li class="md-nav__item">
1604 <a href="../../../../package/pip/script/" class="md-nav__link">
1605 script
1606 </a>
1607 </li>
1608
1609
1610
1611
1612
1613
1614
1615 <li class="md-nav__item">
1616 <a href="../../../../package/pip/smiley/" class="md-nav__link">
1617 smiley
1618 </a>
1619 </li>
1620
1621
1622
1623
1624
1625
1626
1627 <li class="md-nav__item">
1628 <a href="../../../../package/pip/sql/" class="md-nav__link">
1629 sql
1630 </a>
1631 </li>
1632
1633
1634
1635
1636
1637
1638
1639 <li class="md-nav__item">
1640 <a href="../../../../package/pip/style/" class="md-nav__link">
1641 style
1642 </a>
1643 </li>
1644
1645
1646
1647
1648
1649
1650
1651 <li class="md-nav__item">
1652 <a href="../../../../package/pip/template/" class="md-nav__link">
1653 template
1654 </a>
1655 </li>
1656
1657
1658
1659
1660
1661
1662
1663 <li class="md-nav__item">
1664 <a href="../../../../package/pip/template-listener/" class="md-nav__link">
1665 templateListener
1666 </a>
1667 </li>
1668
1669
1670
1671
1672
1673
1674
1675 <li class="md-nav__item">
1676 <a href="../../../../package/pip/user-group-option/" class="md-nav__link">
1677 userGroupOption
1678 </a>
1679 </li>
1680
1681
1682
1683
1684
1685
1686
1687 <li class="md-nav__item">
1688 <a href="../../../../package/pip/user-menu/" class="md-nav__link">
1689 userMenu
1690 </a>
1691 </li>
1692
1693
1694
1695
1696
1697
1698
1699 <li class="md-nav__item">
1700 <a href="../../../../package/pip/user-notification-event/" class="md-nav__link">
1701 userNotificationEvent
1702 </a>
1703 </li>
1704
1705
1706
1707
1708
1709
1710
1711 <li class="md-nav__item">
1712 <a href="../../../../package/pip/user-option/" class="md-nav__link">
1713 userOption
1714 </a>
1715 </li>
1716
1717
1718
1719
1720
1721
1722
1723 <li class="md-nav__item">
1724 <a href="../../../../package/pip/user-profile-menu/" class="md-nav__link">
1725 userProfileMenu
1726 </a>
1727 </li>
1728
1729
1730
1731 </ul>
1732 </nav>
1733 </li>
1734
1735
1736
1737
1738
1739
1740
1741 <li class="md-nav__item">
1742 <a href="../../../../package/database-php-api/" class="md-nav__link">
1743 Database PHP API
1744 </a>
1745 </li>
1746
1747
1748
1749 </ul>
1750 </nav>
1751 </li>
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763 <li class="md-nav__item md-nav__item--nested">
1764
1765
1766 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6" type="checkbox" id="__nav_6" >
1767
1768 <label class="md-nav__link" for="__nav_6">
1769 Migration
1770 <span class="md-nav__icon md-icon"></span>
1771 </label>
1772 <nav class="md-nav" aria-label="Migration" data-md-level="1">
1773 <label class="md-nav__title" for="__nav_6">
1774 <span class="md-nav__icon md-icon"></span>
1775 Migration
1776 </label>
1777 <ul class="md-nav__list" data-md-scrollfix>
1778
1779
1780
1781
1782
1783
1784 <li class="md-nav__item md-nav__item--nested">
1785
1786
1787 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_1" type="checkbox" id="__nav_6_1" >
1788
1789 <label class="md-nav__link" for="__nav_6_1">
1790 Migrating from WSC 5.3
1791 <span class="md-nav__icon md-icon"></span>
1792 </label>
1793 <nav class="md-nav" aria-label="Migrating from WSC 5.3" data-md-level="2">
1794 <label class="md-nav__title" for="__nav_6_1">
1795 <span class="md-nav__icon md-icon"></span>
1796 Migrating from WSC 5.3
1797 </label>
1798 <ul class="md-nav__list" data-md-scrollfix>
1799
1800
1801
1802
1803
1804 <li class="md-nav__item">
1805 <a href="../../../../migration/wsc53/php/" class="md-nav__link">
1806 PHP API
1807 </a>
1808 </li>
1809
1810
1811
1812
1813
1814
1815
1816 <li class="md-nav__item">
1817 <a href="../../../../migration/wsc53/session/" class="md-nav__link">
1818 Session Handling and Authentication
1819 </a>
1820 </li>
1821
1822
1823
1824
1825
1826
1827
1828 <li class="md-nav__item">
1829 <a href="../../../../migration/wsc53/javascript/" class="md-nav__link">
1830 JavaScript
1831 </a>
1832 </li>
1833
1834
1835
1836
1837
1838
1839
1840 <li class="md-nav__item">
1841 <a href="../../../../migration/wsc53/templates/" class="md-nav__link">
1842 Templates
1843 </a>
1844 </li>
1845
1846
1847
1848
1849
1850
1851
1852 <li class="md-nav__item">
1853 <a href="../../../../migration/wsc53/libraries/" class="md-nav__link">
1854 Third Party Libraries
1855 </a>
1856 </li>
1857
1858
1859
1860 </ul>
1861 </nav>
1862 </li>
1863
1864
1865
1866
1867
1868
1869
1870
1871 <li class="md-nav__item md-nav__item--nested">
1872
1873
1874 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_2" type="checkbox" id="__nav_6_2" >
1875
1876 <label class="md-nav__link" for="__nav_6_2">
1877 Migrating from WSC 5.2
1878 <span class="md-nav__icon md-icon"></span>
1879 </label>
1880 <nav class="md-nav" aria-label="Migrating from WSC 5.2" data-md-level="2">
1881 <label class="md-nav__title" for="__nav_6_2">
1882 <span class="md-nav__icon md-icon"></span>
1883 Migrating from WSC 5.2
1884 </label>
1885 <ul class="md-nav__list" data-md-scrollfix>
1886
1887
1888
1889
1890
1891 <li class="md-nav__item">
1892 <a href="../../../../migration/wsc52/php/" class="md-nav__link">
1893 PHP API
1894 </a>
1895 </li>
1896
1897
1898
1899
1900
1901
1902
1903 <li class="md-nav__item">
1904 <a href="../../../../migration/wsc52/templates/" class="md-nav__link">
1905 Templates and Languages
1906 </a>
1907 </li>
1908
1909
1910
1911
1912
1913
1914
1915 <li class="md-nav__item">
1916 <a href="../../../../migration/wsc52/libraries/" class="md-nav__link">
1917 Third Party Libraries
1918 </a>
1919 </li>
1920
1921
1922
1923 </ul>
1924 </nav>
1925 </li>
1926
1927
1928
1929
1930
1931
1932
1933
1934 <li class="md-nav__item md-nav__item--nested">
1935
1936
1937 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_3" type="checkbox" id="__nav_6_3" >
1938
1939 <label class="md-nav__link" for="__nav_6_3">
1940 Migrating from WSC 3.1
1941 <span class="md-nav__icon md-icon"></span>
1942 </label>
1943 <nav class="md-nav" aria-label="Migrating from WSC 3.1" data-md-level="2">
1944 <label class="md-nav__title" for="__nav_6_3">
1945 <span class="md-nav__icon md-icon"></span>
1946 Migrating from WSC 3.1
1947 </label>
1948 <ul class="md-nav__list" data-md-scrollfix>
1949
1950
1951
1952
1953
1954 <li class="md-nav__item">
1955 <a href="../../../../migration/wsc31/php/" class="md-nav__link">
1956 PHP API
1957 </a>
1958 </li>
1959
1960
1961
1962 </ul>
1963 </nav>
1964 </li>
1965
1966
1967
1968
1969
1970
1971
1972
1973 <li class="md-nav__item md-nav__item--nested">
1974
1975
1976 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_4" type="checkbox" id="__nav_6_4" >
1977
1978 <label class="md-nav__link" for="__nav_6_4">
1979 Migrating from WSC 3.0
1980 <span class="md-nav__icon md-icon"></span>
1981 </label>
1982 <nav class="md-nav" aria-label="Migrating from WSC 3.0" data-md-level="2">
1983 <label class="md-nav__title" for="__nav_6_4">
1984 <span class="md-nav__icon md-icon"></span>
1985 Migrating from WSC 3.0
1986 </label>
1987 <ul class="md-nav__list" data-md-scrollfix>
1988
1989
1990
1991
1992
1993 <li class="md-nav__item">
1994 <a href="../../../../migration/wsc30/php/" class="md-nav__link">
1995 PHP API
1996 </a>
1997 </li>
1998
1999
2000
2001
2002
2003
2004
2005 <li class="md-nav__item">
2006 <a href="../../../../migration/wsc30/javascript/" class="md-nav__link">
2007 JavaScript API
2008 </a>
2009 </li>
2010
2011
2012
2013
2014
2015
2016
2017 <li class="md-nav__item">
2018 <a href="../../../../migration/wsc30/templates/" class="md-nav__link">
2019 Templates
2020 </a>
2021 </li>
2022
2023
2024
2025
2026
2027
2028
2029 <li class="md-nav__item">
2030 <a href="../../../../migration/wsc30/css/" class="md-nav__link">
2031 CSS
2032 </a>
2033 </li>
2034
2035
2036
2037
2038
2039
2040
2041 <li class="md-nav__item">
2042 <a href="../../../../migration/wsc30/package/" class="md-nav__link">
2043 Package Components
2044 </a>
2045 </li>
2046
2047
2048
2049 </ul>
2050 </nav>
2051 </li>
2052
2053
2054
2055
2056
2057
2058
2059
2060 <li class="md-nav__item md-nav__item--nested">
2061
2062
2063 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_6_5" type="checkbox" id="__nav_6_5" >
2064
2065 <label class="md-nav__link" for="__nav_6_5">
2066 Migrating from WCF 2.1
2067 <span class="md-nav__icon md-icon"></span>
2068 </label>
2069 <nav class="md-nav" aria-label="Migrating from WCF 2.1" data-md-level="2">
2070 <label class="md-nav__title" for="__nav_6_5">
2071 <span class="md-nav__icon md-icon"></span>
2072 Migrating from WCF 2.1
2073 </label>
2074 <ul class="md-nav__list" data-md-scrollfix>
2075
2076
2077
2078
2079
2080 <li class="md-nav__item">
2081 <a href="../../../../migration/wcf21/php/" class="md-nav__link">
2082 PHP API
2083 </a>
2084 </li>
2085
2086
2087
2088
2089
2090
2091
2092 <li class="md-nav__item">
2093 <a href="../../../../migration/wcf21/templates/" class="md-nav__link">
2094 Templates
2095 </a>
2096 </li>
2097
2098
2099
2100
2101
2102
2103
2104 <li class="md-nav__item">
2105 <a href="../../../../migration/wcf21/css/" class="md-nav__link">
2106 CSS
2107 </a>
2108 </li>
2109
2110
2111
2112
2113
2114
2115
2116 <li class="md-nav__item">
2117 <a href="../../../../migration/wcf21/package/" class="md-nav__link">
2118 Package Components
2119 </a>
2120 </li>
2121
2122
2123
2124 </ul>
2125 </nav>
2126 </li>
2127
2128
2129
2130 </ul>
2131 </nav>
2132 </li>
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144 <li class="md-nav__item md-nav__item--nested">
2145
2146
2147 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7" type="checkbox" id="__nav_7" >
2148
2149 <label class="md-nav__link" for="__nav_7">
2150 Tutorials
2151 <span class="md-nav__icon md-icon"></span>
2152 </label>
2153 <nav class="md-nav" aria-label="Tutorials" data-md-level="1">
2154 <label class="md-nav__title" for="__nav_7">
2155 <span class="md-nav__icon md-icon"></span>
2156 Tutorials
2157 </label>
2158 <ul class="md-nav__list" data-md-scrollfix>
2159
2160
2161
2162
2163
2164
2165 <li class="md-nav__item md-nav__item--nested">
2166
2167
2168 <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_7_1" type="checkbox" id="__nav_7_1" >
2169
2170 <label class="md-nav__link" for="__nav_7_1">
2171 Tutorial Series
2172 <span class="md-nav__icon md-icon"></span>
2173 </label>
2174 <nav class="md-nav" aria-label="Tutorial Series" data-md-level="2">
2175 <label class="md-nav__title" for="__nav_7_1">
2176 <span class="md-nav__icon md-icon"></span>
2177 Tutorial Series
2178 </label>
2179 <ul class="md-nav__list" data-md-scrollfix>
2180
2181
2182
2183
2184
2185 <li class="md-nav__item">
2186 <a href="../../../../tutorial/series/overview/" class="md-nav__link">
2187 Overview
2188 </a>
2189 </li>
2190
2191
2192
2193
2194
2195
2196
2197 <li class="md-nav__item">
2198 <a href="../../../../tutorial/series/part_1/" class="md-nav__link">
2199 Part 1
2200 </a>
2201 </li>
2202
2203
2204
2205
2206
2207
2208
2209 <li class="md-nav__item">
2210 <a href="../../../../tutorial/series/part_2/" class="md-nav__link">
2211 Part 2
2212 </a>
2213 </li>
2214
2215
2216
2217
2218
2219
2220
2221 <li class="md-nav__item">
2222 <a href="../../../../tutorial/series/part_3/" class="md-nav__link">
2223 Part 3
2224 </a>
2225 </li>
2226
2227
2228
2229 </ul>
2230 </nav>
2231 </li>
2232
2233
2234
2235 </ul>
2236 </nav>
2237 </li>
2238
2239
2240
2241 </ul>
2242</nav>
2243 </div>
2244 </div>
2245 </div>
2246
2247
2248
2249 <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
2250 <div class="md-sidebar__scrollwrap">
2251 <div class="md-sidebar__inner">
2252
2253<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
2254
2255
2256
2257
2258
2259 <label class="md-nav__title" for="__toc">
2260 <span class="md-nav__icon md-icon"></span>
2261 Table of contents
2262 </label>
2263 <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
2264
2265 <li class="md-nav__item">
2266 <a href="#abstract-form-fields" class="md-nav__link">
2267 Abstract Form Fields
2268 </a>
2269
2270 <nav class="md-nav" aria-label="Abstract Form Fields">
2271 <ul class="md-nav__list">
2272
2273 <li class="md-nav__item">
2274 <a href="#abstractformfield" class="md-nav__link">
2275 AbstractFormField
2276 </a>
2277
2278</li>
2279
2280 <li class="md-nav__item">
2281 <a href="#abstractnumericformfield" class="md-nav__link">
2282 AbstractNumericFormField
2283 </a>
2284
2285</li>
2286
2287 </ul>
2288 </nav>
2289
2290</li>
2291
2292 <li class="md-nav__item">
2293 <a href="#general-form-fields" class="md-nav__link">
2294 General Form Fields
2295 </a>
2296
2297 <nav class="md-nav" aria-label="General Form Fields">
2298 <ul class="md-nav__list">
2299
2300 <li class="md-nav__item">
2301 <a href="#booleanformfield" class="md-nav__link">
2302 BooleanFormField
2303 </a>
2304
2305</li>
2306
2307 <li class="md-nav__item">
2308 <a href="#checkboxformfield" class="md-nav__link">
2309 CheckboxFormField
2310 </a>
2311
2312</li>
2313
2314 <li class="md-nav__item">
2315 <a href="#classnameformfield" class="md-nav__link">
2316 ClassNameFormField
2317 </a>
2318
2319</li>
2320
2321 <li class="md-nav__item">
2322 <a href="#dateformfield" class="md-nav__link">
2323 DateFormField
2324 </a>
2325
2326</li>
2327
2328 <li class="md-nav__item">
2329 <a href="#descriptionformfield" class="md-nav__link">
2330 DescriptionFormField
2331 </a>
2332
2333</li>
2334
2335 <li class="md-nav__item">
2336 <a href="#emailformfield" class="md-nav__link">
2337 EmailFormField
2338 </a>
2339
2340</li>
2341
2342 <li class="md-nav__item">
2343 <a href="#floatformfield" class="md-nav__link">
2344 FloatFormField
2345 </a>
2346
2347</li>
2348
2349 <li class="md-nav__item">
2350 <a href="#iconformfield" class="md-nav__link">
2351 IconFormField
2352 </a>
2353
2354</li>
2355
2356 <li class="md-nav__item">
2357 <a href="#integerformfield" class="md-nav__link">
2358 IntegerFormField
2359 </a>
2360
2361</li>
2362
2363 <li class="md-nav__item">
2364 <a href="#isdisabledformfield" class="md-nav__link">
2365 IsDisabledFormField
2366 </a>
2367
2368</li>
2369
2370 <li class="md-nav__item">
2371 <a href="#itemlistformfield" class="md-nav__link">
2372 ItemListFormField
2373 </a>
2374
2375</li>
2376
2377 <li class="md-nav__item">
2378 <a href="#multilinetextformfield" class="md-nav__link">
2379 MultilineTextFormField
2380 </a>
2381
2382</li>
2383
2384 <li class="md-nav__item">
2385 <a href="#multipleselectionformfield" class="md-nav__link">
2386 MultipleSelectionFormField
2387 </a>
2388
2389</li>
2390
2391 <li class="md-nav__item">
2392 <a href="#radiobuttonformfield" class="md-nav__link">
2393 RadioButtonFormField
2394 </a>
2395
2396</li>
2397
2398 <li class="md-nav__item">
2399 <a href="#ratingformfield" class="md-nav__link">
2400 RatingFormField
2401 </a>
2402
2403</li>
2404
2405 <li class="md-nav__item">
2406 <a href="#showorderformfield" class="md-nav__link">
2407 ShowOrderFormField
2408 </a>
2409
2410</li>
2411
2412 <li class="md-nav__item">
2413 <a href="#singleselectionformfield" class="md-nav__link">
2414 SingleSelectionFormField
2415 </a>
2416
2417</li>
2418
2419 <li class="md-nav__item">
2420 <a href="#sortorderformfield" class="md-nav__link">
2421 SortOrderFormField
2422 </a>
2423
2424</li>
2425
2426 <li class="md-nav__item">
2427 <a href="#textformfield" class="md-nav__link">
2428 TextFormField
2429 </a>
2430
2431</li>
2432
2433 <li class="md-nav__item">
2434 <a href="#titleformfield" class="md-nav__link">
2435 TitleFormField
2436 </a>
2437
2438</li>
2439
2440 <li class="md-nav__item">
2441 <a href="#urlformfield" class="md-nav__link">
2442 UrlFormField
2443 </a>
2444
2445</li>
2446
2447 </ul>
2448 </nav>
2449
2450</li>
2451
2452 <li class="md-nav__item">
2453 <a href="#specific-fields" class="md-nav__link">
2454 Specific Fields
2455 </a>
2456
2457 <nav class="md-nav" aria-label="Specific Fields">
2458 <ul class="md-nav__list">
2459
2460 <li class="md-nav__item">
2461 <a href="#aclformfield" class="md-nav__link">
2462 AclFormField
2463 </a>
2464
2465</li>
2466
2467 <li class="md-nav__item">
2468 <a href="#buttonformfield" class="md-nav__link">
2469 ButtonFormField
2470 </a>
2471
2472</li>
2473
2474 <li class="md-nav__item">
2475 <a href="#captchaformfield" class="md-nav__link">
2476 CaptchaFormField
2477 </a>
2478
2479</li>
2480
2481 <li class="md-nav__item">
2482 <a href="#contentlanguageformfield" class="md-nav__link">
2483 ContentLanguageFormField
2484 </a>
2485
2486</li>
2487
2488 <li class="md-nav__item">
2489 <a href="#labelformfield" class="md-nav__link">
2490 LabelFormField
2491 </a>
2492
2493</li>
2494
2495 <li class="md-nav__item">
2496 <a href="#optionformfield" class="md-nav__link">
2497 OptionFormField
2498 </a>
2499
2500</li>
2501
2502 <li class="md-nav__item">
2503 <a href="#simpleaclformfield" class="md-nav__link">
2504 SimpleAclFormField
2505 </a>
2506
2507</li>
2508
2509 <li class="md-nav__item">
2510 <a href="#singlemediaselectionformfield" class="md-nav__link">
2511 SingleMediaSelectionFormField
2512 </a>
2513
2514</li>
2515
2516 <li class="md-nav__item">
2517 <a href="#tagformfield" class="md-nav__link">
2518 TagFormField
2519 </a>
2520
2521</li>
2522
2523 <li class="md-nav__item">
2524 <a href="#uploadformfield" class="md-nav__link">
2525 UploadFormField
2526 </a>
2527
2528 <nav class="md-nav" aria-label="UploadFormField">
2529 <ul class="md-nav__list">
2530
2531 <li class="md-nav__item">
2532 <a href="#provide-value-from-database-object" class="md-nav__link">
2533 Provide value from database object
2534 </a>
2535
2536</li>
2537
2538 <li class="md-nav__item">
2539 <a href="#process-files" class="md-nav__link">
2540 Process files
2541 </a>
2542
2543</li>
2544
2545 </ul>
2546 </nav>
2547
2548</li>
2549
2550 <li class="md-nav__item">
2551 <a href="#userformfield" class="md-nav__link">
2552 UserFormField
2553 </a>
2554
2555</li>
2556
2557 <li class="md-nav__item">
2558 <a href="#userpasswordfield" class="md-nav__link">
2559 UserPasswordField
2560 </a>
2561
2562</li>
2563
2564 <li class="md-nav__item">
2565 <a href="#usergroupoptionformfield" class="md-nav__link">
2566 UserGroupOptionFormField
2567 </a>
2568
2569</li>
2570
2571 <li class="md-nav__item">
2572 <a href="#usernameformfield" class="md-nav__link">
2573 UsernameFormField
2574 </a>
2575
2576</li>
2577
2578 </ul>
2579 </nav>
2580
2581</li>
2582
2583 <li class="md-nav__item">
2584 <a href="#wysiwyg-form-container" class="md-nav__link">
2585 Wysiwyg form container
2586 </a>
2587
2588 <nav class="md-nav" aria-label="Wysiwyg form container">
2589 <ul class="md-nav__list">
2590
2591 <li class="md-nav__item">
2592 <a href="#wysiwygattachmentformfield" class="md-nav__link">
2593 WysiwygAttachmentFormField
2594 </a>
2595
2596</li>
2597
2598 <li class="md-nav__item">
2599 <a href="#wysiwygpollformcontainer" class="md-nav__link">
2600 WysiwygPollFormContainer
2601 </a>
2602
2603</li>
2604
2605 <li class="md-nav__item">
2606 <a href="#wysiwygsmileyformcontainer" class="md-nav__link">
2607 WysiwygSmileyFormContainer
2608 </a>
2609
2610 <nav class="md-nav" aria-label="WysiwygSmileyFormContainer">
2611 <ul class="md-nav__list">
2612
2613 <li class="md-nav__item">
2614 <a href="#wysiwygsmileyformnode" class="md-nav__link">
2615 WysiwygSmileyFormNode
2616 </a>
2617
2618</li>
2619
2620 </ul>
2621 </nav>
2622
2623</li>
2624
2625 <li class="md-nav__item">
2626 <a href="#example" class="md-nav__link">
2627 Example
2628 </a>
2629
2630</li>
2631
2632 <li class="md-nav__item">
2633 <a href="#wysiwygformfield" class="md-nav__link">
2634 WysiwygFormField
2635 </a>
2636
2637</li>
2638
2639 <li class="md-nav__item">
2640 <a href="#twysiwygformnode" class="md-nav__link">
2641 TWysiwygFormNode
2642 </a>
2643
2644</li>
2645
2646 </ul>
2647 </nav>
2648
2649</li>
2650
2651 <li class="md-nav__item">
2652 <a href="#single-use-form-fields" class="md-nav__link">
2653 Single-Use Form Fields
2654 </a>
2655
2656 <nav class="md-nav" aria-label="Single-Use Form Fields">
2657 <ul class="md-nav__list">
2658
2659 <li class="md-nav__item">
2660 <a href="#bbcodeattributesformfield" class="md-nav__link">
2661 BBCodeAttributesFormField
2662 </a>
2663
2664</li>
2665
2666 <li class="md-nav__item">
2667 <a href="#devtoolsprojectexcludedpackagesformfield" class="md-nav__link">
2668 DevtoolsProjectExcludedPackagesFormField
2669 </a>
2670
2671</li>
2672
2673 <li class="md-nav__item">
2674 <a href="#devtoolsprojectinstructionsformfield" class="md-nav__link">
2675 DevtoolsProjectInstructionsFormField
2676 </a>
2677
2678</li>
2679
2680 <li class="md-nav__item">
2681 <a href="#devtoolsprojectoptionalpackagesformfield" class="md-nav__link">
2682 DevtoolsProjectOptionalPackagesFormField
2683 </a>
2684
2685</li>
2686
2687 <li class="md-nav__item">
2688 <a href="#devtoolsprojectrequiredpackagesformfield" class="md-nav__link">
2689 DevtoolsProjectRequiredPackagesFormField
2690 </a>
2691
2692</li>
2693
2694 </ul>
2695 </nav>
2696
2697</li>
2698
2699 </ul>
2700
2701</nav>
2702 </div>
2703 </div>
2704 </div>
2705
2706
2707 <div class="md-content" data-md-component="content">
2708 <article class="md-content__inner md-typeset">
2709
2710
9b8bddda 2711 <a href="https://github.com/WoltLab/docs.woltlab.com/edit/5.4/docs/php/api/form_builder/form_fields.md" title="Edit this page" class="md-content__button md-icon">
7124f4cb
WG
2712 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/></svg>
2713 </a>
2714
0c5338dd
TD
2715
2716 <h1 id="form-builder-fields">Form Builder Fields<a class="headerlink" href="#form-builder-fields" title="Permanent link">#</a></h1>
2717<h2 id="abstract-form-fields">Abstract Form Fields<a class="headerlink" href="#abstract-form-fields" title="Permanent link">#</a></h2>
2718<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>
2719<h3 id="abstractformfield"><code>AbstractFormField</code><a class="headerlink" href="#abstractformfield" title="Permanent link">#</a></h3>
2720<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>
2721<h3 id="abstractnumericformfield"><code>AbstractNumericFormField</code><a class="headerlink" href="#abstractnumericformfield" title="Permanent link">#</a></h3>
2722<p><code>AbstractNumericFormField</code> is the abstract implementation of a form field handling a single numeric value.
2723The 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>.
2724If the property <code>$integerValues</code> is <code>true</code>, the form field works with integer values, otherwise it works with floating point numbers.
2725The 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.
2726The default step for form fields with integer values is <code>1</code>.
2727Otherwise, the default step is <code>any</code>.</p>
2728<h2 id="general-form-fields">General Form Fields<a class="headerlink" href="#general-form-fields" title="Permanent link">#</a></h2>
2729<p>The following form fields are general reusable fields without any underlying context.</p>
2730<h3 id="booleanformfield"><code>BooleanFormField</code><a class="headerlink" href="#booleanformfield" title="Permanent link">#</a></h3>
2731<p><code>BooleanFormField</code> is used for boolean (<code>0</code> or <code>1</code>, <code>yes</code> or <code>no</code>) values.
2732Objects of this class require a label.
2733The return value of <code>getSaveValue()</code> is the integer representation of the boolean value, i.e. <code>0</code> or <code>1</code>.
2734The class implements <code>IAttributeFormField</code>, <code>IAutoFocusFormField</code>, <code>ICssClassFormField</code>, and <code>IImmutableFormField</code>.</p>
2735<h3 id="checkboxformfield"><code>CheckboxFormField</code><a class="headerlink" href="#checkboxformfield" title="Permanent link">#</a></h3>
2736<div class="admonition info">
2737<p class="admonition-title">Only available since version 5.3.2.</p>
2738</div>
2739<p><code>CheckboxFormField</code> extends <code>BooleanFormField</code> and offers a simple HTML checkbox.</p>
2740<h3 id="classnameformfield"><code>ClassNameFormField</code><a class="headerlink" href="#classnameformfield" title="Permanent link">#</a></h3>
2741<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>
2742<ul>
2743<li><code>classExists($classExists = true)</code> and <code>getClassExists()</code> can be used to ensure that the entered class currently exists in the installation.
2744 By default, the existance of the entered class is required.</li>
2745<li><code>implementedInterface($interface)</code> and <code>getImplementedInterface()</code> can be used to ensure that the entered class implements the specified interface.
2746 By default, no interface is required.</li>
2747<li><code>parentClass($parentClass)</code> and <code>getParentClass()</code> can be used to ensure that the entered class extends the specified class.
2748 By default, no parent class is required.</li>
2749<li><code>instantiable($instantiable = true)</code> and <code>isInstantiable()</code> can be used to ensure that the entered class is instantiable.
2750 By default, entered classes have to instantiable.</li>
2751</ul>
2752<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>
2753<h3 id="dateformfield"><code>DateFormField</code><a class="headerlink" href="#dateformfield" title="Permanent link">#</a></h3>
2754<p><code>DateFormField</code> is a form field to enter a date (and optionally a time).
2755The class implements <code>IAttributeFormField</code>, <code>IAutoFocusFormField</code>, <code>ICssClassFormField</code>, <code>IImmutableFormField</code>, and <code>INullableFormField</code>.
2756The following methods are specific to this form field class:</p>
2757<ul>
2758<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.
2759 The date passed to the setters must have the same format as set via <code>saveValueFormat()</code>.
2760 If a custom format is used, that format has to be set via <code>saveValueFormat()</code> before calling any of the setters.</li>
2761<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>.
2762 By default, <code>U</code> is used as format.
2763 The <a href="https://secure.php.net/manual/en/function.date.php">PHP manual</a> provides an overview of supported formats.</li>
2764<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.
2765 By default, specifying a time is disabled.</li>
2766</ul>
2767<h3 id="descriptionformfield"><code>DescriptionFormField</code><a class="headerlink" href="#descriptionformfield" title="Permanent link">#</a></h3>
2768<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>
2769<h3 id="emailformfield"><code>EmailFormField</code><a class="headerlink" href="#emailformfield" title="Permanent link">#</a></h3>
2770<p><code>EmailFormField</code> is a form field to enter an email address which is internally validated using <code>UserUtil::isValidEmail()</code>.
2771The 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>
2772<h3 id="floatformfield"><code>FloatFormField</code><a class="headerlink" href="#floatformfield" title="Permanent link">#</a></h3>
2773<p><code>FloatFormField</code> is an implementation of <a href="#abstractnumericformfield">AbstractNumericFormField</a> for floating point numbers.</p>
2774<h3 id="iconformfield"><code>IconFormField</code><a class="headerlink" href="#iconformfield" title="Permanent link">#</a></h3>
2775<p><code>IconFormField</code> is a form field to select a FontAwesome icon.</p>
2776<h3 id="integerformfield"><code>IntegerFormField</code><a class="headerlink" href="#integerformfield" title="Permanent link">#</a></h3>
2777<p><code>IntegerFormField</code> is an implementation of <a href="#abstractnumericformfield">AbstractNumericFormField</a> for integers.</p>
2778<h3 id="isdisabledformfield"><code>IsDisabledFormField</code><a class="headerlink" href="#isdisabledformfield" title="Permanent link">#</a></h3>
2779<p><code>IsDisabledFormField</code> is a <a href="#booleanformfield">boolean form field</a> with <code>isDisabled</code> as the default id.</p>
2780<h3 id="itemlistformfield"><code>ItemListFormField</code><a class="headerlink" href="#itemlistformfield" title="Permanent link">#</a></h3>
2781<p><code>ItemListFormField</code> is a form field in which multiple values can be entered and returned in different formats as save value.
2782The class implements <code>IAttributeFormField</code>, <code>IAutoFocusFormField</code>, <code>ICssClassFormField</code>, <code>IImmutableFormField</code>, and <code>IMultipleFormField</code>.
2783The <code>saveValueType($saveValueType)</code> and <code>getSaveValueType()</code> methods are specific to this form field class and determine the format of the save value.
2784The following save value types are supported:</p>
2785<ul>
2786<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>
2787<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>
2788<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>
2789<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>
2790</ul>
2791<p>By default, <code>ItemListFormField::SAVE_VALUE_TYPE_CSV</code> is used.</p>
2792<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>
2793<h3 id="multilinetextformfield"><code>MultilineTextFormField</code><a class="headerlink" href="#multilinetextformfield" title="Permanent link">#</a></h3>
2794<p><code>MultilineTextFormField</code> is a <a href="#textformfield">text form field</a> that supports multiple rows of text.
2795The 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.
2796The default number of rows is <code>10</code>.
2797These methods do <strong>not</strong>, however, restrict the number of text rows that canbe entered.</p>
2798<h3 id="multipleselectionformfield"><code>MultipleSelectionFormField</code><a class="headerlink" href="#multipleselectionformfield" title="Permanent link">#</a></h3>
2799<p><code>MultipleSelectionFormField</code> is a form fields that allows the selection of multiple options out of a predefined list of available options.
2800The class implements <code>IAttributeFormField</code>, <code>ICssClassFormField</code>, <code>IFilterableSelectionFormField</code>, <code>IImmutableFormField</code>, and <code>INullableFormField</code>.
2801If the field is nullable and no option is selected, <code>null</code> is returned as the save value.</p>
2802<h3 id="radiobuttonformfield"><code>RadioButtonFormField</code><a class="headerlink" href="#radiobuttonformfield" title="Permanent link">#</a></h3>
2803<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.
2804The class implements <code>IAttributeFormField</code>, <code>ICssClassFormField</code>, <code>IImmutableFormField</code>, and <code>ISelectionFormField</code>.</p>
2805<h3 id="ratingformfield"><code>RatingFormField</code><a class="headerlink" href="#ratingformfield" title="Permanent link">#</a></h3>
2806<p><code>RatingFormField</code> is a form field to set a rating for an object.
2807The class implements <code>IImmutableFormField</code>, <code>IMaximumFormField</code>, <code>IMinimumFormField</code>, and <code>INullableFormField</code>.
2808Form 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.
2809For this field, the minimum and maximum refer to the minimum and maximum rating an object can get.
2810When 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>.
2811If 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>.
2812By 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>
2813<h3 id="showorderformfield"><code>ShowOrderFormField</code><a class="headerlink" href="#showorderformfield" title="Permanent link">#</a></h3>
2814<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.
2815The show order field provides a list of all siblings and the object will be positioned <strong>after</strong> the selected sibling.
2816To 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.
2817The default id of instances of this class is <code>showOrder</code> and their default label is <code>wcf.form.field.showOrder</code>.</p>
2818<div class="admonition info">
2819<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>
2820</div>
2821<h3 id="singleselectionformfield"><code>SingleSelectionFormField</code><a class="headerlink" href="#singleselectionformfield" title="Permanent link">#</a></h3>
2822<p><code>SingleSelectionFormField</code> is a form fields that allows the selection of a single option out of a predefined list of available options.
2823The class implements <code>ICssClassFormField</code>, <code>IFilterableSelectionFormField</code>, <code>IImmutableFormField</code>, and <code>INullableFormField</code>.
2824If 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>
2825<h3 id="sortorderformfield"><code>SortOrderFormField</code><a class="headerlink" href="#sortorderformfield" title="Permanent link">#</a></h3>
2826<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>
2827<h3 id="textformfield"><code>TextFormField</code><a class="headerlink" href="#textformfield" title="Permanent link">#</a></h3>
2828<p><code>TextFormField</code> is a form field that allows entering a single line of text.
2829The 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>
2830<h3 id="titleformfield"><code>TitleFormField</code><a class="headerlink" href="#titleformfield" title="Permanent link">#</a></h3>
2831<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>
2832<h3 id="urlformfield"><code>UrlFormField</code><a class="headerlink" href="#urlformfield" title="Permanent link">#</a></h3>
2833<p><code>UrlFormField</code> is a <a href="#textformfield">text form field</a> whose values are checked via <code>Url::is()</code>.</p>
2834<h2 id="specific-fields">Specific Fields<a class="headerlink" href="#specific-fields" title="Permanent link">#</a></h2>
2835<p>The following form fields are reusable fields that generally are bound to a certain API or <code>DatabaseObject</code> implementation.</p>
2836<h3 id="aclformfield"><code>AclFormField</code><a class="headerlink" href="#aclformfield" title="Permanent link">#</a></h3>
2837<p><code>AclFormField</code> is used for setting up acl values for specific objects.
2838The class implements <code>IObjectTypeFormField</code> and requires an object type of the object type definition <code>com.woltlab.wcf.acl</code>.
2839Additionally, 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.
2840A category name of <code>null</code> signals that no category filter is used.</p>
2841<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.
2842The relevant database object action method is expected, based on the given ACL object type id, to save the ACL option values appropriately.</p>
2843<h3 id="buttonformfield"><code>ButtonFormField</code><a class="headerlink" href="#buttonformfield" title="Permanent link">#</a></h3>
2844<div class="admonition info">
2845<p class="admonition-title">Only available since version 5.4.</p>
2846</div>
2847<p><code>ButtonFormField</code> shows a submit button as part of the form.
2848The class implements <code>IAttributeFormField</code> and <code>ICssClassFormField</code>.</p>
2849<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>
2850<h3 id="captchaformfield"><code>CaptchaFormField</code><a class="headerlink" href="#captchaformfield" title="Permanent link">#</a></h3>
2851<p><code>CaptchaFormField</code> is used to add captcha protection to the form.</p>
2852<p>You must specify a captcha object type (<code>com.woltlab.wcf.captcha</code>) using the <code>objectType()</code> method.</p>
2853<h3 id="contentlanguageformfield"><code>ContentLanguageFormField</code><a class="headerlink" href="#contentlanguageformfield" title="Permanent link">#</a></h3>
2854<p><code>ContentLanguageFormField</code> is used to select the content language of an object.
2855Fields of this class are only available if multilingualism is enabled and if there are content languages.
2856The class implements <code>IImmutableFormField</code>.</p>
2857<h3 id="labelformfield"><code>LabelFormField</code><a class="headerlink" href="#labelformfield" title="Permanent link">#</a></h3>
2858<p><code>LabelFormField</code> is used to select a label from a specific label group.
2859The class implements <code>IObjectTypeFormNode</code>.</p>
2860<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.
2861Additionally, 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.
2862In most cases, <code>LabelFormField::createFields()</code> should be used.</p>
2863<h3 id="optionformfield"><code>OptionFormField</code><a class="headerlink" href="#optionformfield" title="Permanent link">#</a></h3>
2864<p><code>OptionFormField</code> is an <a href="#itemlistformfield">item list form field</a> to set a list of options.
2865The class implements <code>IPackagesFormField</code> and only options of the set packages are considered available.
2866The default label of instances of this class is <code>wcf.form.field.option</code> and their default id is <code>options</code>.</p>
2867<h3 id="simpleaclformfield"><code>SimpleAclFormField</code><a class="headerlink" href="#simpleaclformfield" title="Permanent link">#</a></h3>
2868<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>
2869<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>
2870<h3 id="singlemediaselectionformfield"><code>SingleMediaSelectionFormField</code><a class="headerlink" href="#singlemediaselectionformfield" title="Permanent link">#</a></h3>
2871<p><code>SingleMediaSelectionFormField</code> is used to select a specific media file.
2872The class implements <code>IImmutableFormField</code>.</p>
2873<p>The following methods are specific to this form field class:</p>
2874<ul>
2875<li><code>imageOnly($imageOnly = true)</code> and <code>isImageOnly()</code> can be used to set and check if only images may be selected.</li>
2876<li><code>getMedia()</code> returns the media file based on the current field value if a field is set.</li>
2877</ul>
2878<h3 id="tagformfield"><code>TagFormField</code><a class="headerlink" href="#tagformfield" title="Permanent link">#</a></h3>
2879<p><code>TagFormField</code> is a form field to enter tags.
2880The class implements <code>IAttributeFormField</code> and <code>IObjectTypeFormNode</code>.
2881Arrays passed to <code>TagFormField::values()</code> can contain tag names as strings and <code>Tag</code> objects.
2882The 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>
2883<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>
2884<h3 id="uploadformfield"><code>UploadFormField</code><a class="headerlink" href="#uploadformfield" title="Permanent link">#</a></h3>
2885<p><code>UploadFormField</code> is a form field that allows uploading files by the user.</p>
2886<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>
2887<p>The field supports additional settings:
2888- <code>imageOnly($imageOnly = true)</code> and <code>isImageOnly()</code> can be used to ensure that the uploaded files are only images.
2889- <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.</p>
2890<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>
2891<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>
2892<h4 id="process-files">Process files<a class="headerlink" href="#process-files" title="Permanent link">#</a></h4>
2893<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>
2894<h3 id="userformfield"><code>UserFormField</code><a class="headerlink" href="#userformfield" title="Permanent link">#</a></h3>
2895<p><code>UserFormField</code> is a form field to enter existing users.
2896The class implements <code>IAutoCompleteFormField</code>, <code>IAutoFocusFormField</code>, <code>IImmutableFormField</code>, <code>IMultipleFormField</code>, and <code>INullableFormField</code>.
2897While the user is presented the names of the specified users in the user interface, the field returns the ids of the users as data.
2898The relevant <code>UserProfile</code> objects can be accessed via the <code>getUsers()</code> method.</p>
2899<h3 id="userpasswordfield"><code>UserPasswordField</code><a class="headerlink" href="#userpasswordfield" title="Permanent link">#</a></h3>
2900<div class="admonition info">
2901<p class="admonition-title">Only available since version 5.4.</p>
2902</div>
2903<p><code>UserPasswordField</code> is a form field for users' to enter their current password.
2904The class implements <code>IAttributeFormField</code>, <code>IAttributeFormField</code>, <code>IAutoCompleteFormField</code>, <code>IAutoFocusFormField</code>, and <code>IPlaceholderFormField</code></p>
2905<h3 id="usergroupoptionformfield"><code>UserGroupOptionFormField</code><a class="headerlink" href="#usergroupoptionformfield" title="Permanent link">#</a></h3>
2906<p><code>UserGroupOptionFormField</code> is an <a href="#itemlistformfield">item list form field</a> to set a list of user group options/permissions.
2907The class implements <code>IPackagesFormField</code> and only user group options of the set packages are considered available.
2908The default label of instances of this class is <code>wcf.form.field.userGroupOption</code> and their default id is <code>permissions</code>.</p>
2909<h3 id="usernameformfield"><code>UsernameFormField</code><a class="headerlink" href="#usernameformfield" title="Permanent link">#</a></h3>
2910<p><code>UsernameFormField</code> is used for entering one non-existing username.
2911The class implements <code>IAttributeFormField</code>, <code>IImmutableFormField</code>, <code>IMaximumLengthFormField</code>, <code>IMinimumLengthFormField</code>, <code>INullableFormField</code>, and <code>IPlaceholderFormField</code>.
2912As 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>
2913<h2 id="wysiwyg-form-container">Wysiwyg form container<a class="headerlink" href="#wysiwyg-form-container" title="Permanent link">#</a></h2>
2914<p>To integrate a wysiwyg editor into a form, you have to create a <code>WysiwygFormContainer</code> object.
2915This container takes care of creating all necessary form nodes listed below for a wysiwyg editor.</p>
2916<div class="admonition warning">
2917<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>
2918</div>
2919<p>The following methods are specific to this form container class:</p>
2920<ul>
2921<li><code>addSettingsNode(IFormChildNode $settingsNode)</code> and <code>addSettingsNodes(array $settingsNodes)</code> can be used to add nodes to the settings tab container.</li>
2922<li><code>attachmentData($objectType, $parentObjectID)</code> can be used to set the data relevant for attachment support.
2923 By default, not attachment data is set, thus attachments are not supported.</li>
2924<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>
2925<li><code>enablePreviewButton($enablePreviewButton)</code> can be used to set whether the preview button for the message is shown or not.
2926 By default, the preview button is shown.
2927 This method is only relevant before the form is built.
2928 Afterwards, the preview button availability can not be changed.
2929 Only available since WoltLab Suite Core 5.3.</li>
2930<li><code>getObjectId()</code> returns the id of the edited object or <code>0</code> if no object is edited.</li>
2931<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.
2932 By default, the preselect is <code>'true'</code> which is used to pre-select the first tab.</li>
2933<li><code>messageObjectType($messageObjectType)</code> can be used to set the message object type.</li>
2934<li><code>pollObjectType($pollObjectType)</code> can be used to set the poll object type.
2935 By default, no poll object type is set, thus the poll form field container is not available.</li>
2936<li><code>supportMentions($supportMentions)</code> can be used to set if mentions are supported.
2937 By default, mentions are not supported.
2938 This method is only relevant before the form is built.
2939 Afterwards, mention support can only be changed via the wysiwyg form field.</li>
2940<li><code>supportSmilies($supportSmilies)</code> can be used to set if smilies are supported.
2941 By default, smilies are supported.
2942 This method is only relevant before the form is built.
2943 Afterwards, smiley availability can only be changed via changing the availability of the smilies form container.</li>
2944</ul>
2945<h3 id="wysiwygattachmentformfield"><code>WysiwygAttachmentFormField</code><a class="headerlink" href="#wysiwygattachmentformfield" title="Permanent link">#</a></h3>
2946<p><code>WysiwygAttachmentFormField</code> provides attachment support for a wysiwyg editor via a tab in the menu below the editor.
2947This class should not be used directly but only via <code>WysiwygFormContainer</code>.
2948The 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>
2949<h3 id="wysiwygpollformcontainer"><code>WysiwygPollFormContainer</code><a class="headerlink" href="#wysiwygpollformcontainer" title="Permanent link">#</a></h3>
2950<p><code>WysiwygPollFormContainer</code> provides poll support for a wysiwyg editor via a tab in the menu below the editor.
2951This class should not be used directly but only via <code>WysiwygFormContainer</code>.
2952<code>WysiwygPollFormContainer</code> contains all form fields that are required to create polls and requires edited objects to implement <code>IPollContainer</code>.</p>
2953<p>The following methods are specific to this form container class:</p>
2954<ul>
2955<li><code>getEndTimeField()</code> returns the form field to set the end time of the poll once the form has been built.</li>
2956<li><code>getIsChangeableField()</code> returns the form field to set if poll votes can be changed once the form has been built.</li>
2957<li><code>getIsPublicField()</code> returns the form field to set if poll results are public once the form has been built.</li>
2958<li><code>getMaxVotesField()</code> returns the form field to set the maximum number of votes once the form has been built.</li>
2959<li><code>getOptionsField()</code> returns the form field to set the poll options once the form has been built.</li>
2960<li><code>getQuestionField()</code> returns the form field to set the poll question once the form has been built.</li>
2961<li><code>getResultsRequireVoteField()</code> returns the form field to set if viewing the poll results requires voting once the form has been built.</li>
2962<li><code>getSortByVotesField()</code> returns the form field to set if the results are sorted by votes once the form has been built.</li>
2963</ul>
2964<h3 id="wysiwygsmileyformcontainer"><code>WysiwygSmileyFormContainer</code><a class="headerlink" href="#wysiwygsmileyformcontainer" title="Permanent link">#</a></h3>
2965<p><code>WysiwygSmileyFormContainer</code> provides smiley support for a wysiwyg editor via a tab in the menu below the editor.
2966This class should not be used directly but only via <code>WysiwygFormContainer</code>.
2967<code>WysiwygSmileyFormContainer</code> creates a sub-tab for each smiley category.</p>
2968<h4 id="wysiwygsmileyformnode"><code>WysiwygSmileyFormNode</code><a class="headerlink" href="#wysiwygsmileyformnode" title="Permanent link">#</a></h4>
2969<p><code>WysiwygSmileyFormNode</code> is contains the smilies of a specific category.
2970This class should not be used directly but only via <code>WysiwygSmileyFormContainer</code>.</p>
2971<h3 id="example">Example<a class="headerlink" href="#example" title="Permanent link">#</a></h3>
2972<p>The following code creates a WYSIWYG editor component for a <code>message</code> object property.
2973As smilies are supported by default and an attachment object type is given, the tab menu below the editor has two tabs: “Smilies” and “Attachments”.
2974Additionally, mentions and quotes are supported.</p>
2975<div class="highlight"><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">&#39;message&#39;</span><span class="p">)</span>
2976 <span class="o">-&gt;</span><span class="na">label</span><span class="p">(</span><span class="s1">&#39;foo.bar.message&#39;</span><span class="p">)</span>
2977 <span class="o">-&gt;</span><span class="na">messageObjectType</span><span class="p">(</span><span class="s1">&#39;com.example.foo.bar&#39;</span><span class="p">)</span>
2978 <span class="o">-&gt;</span><span class="na">attachmentData</span><span class="p">(</span><span class="s1">&#39;com.example.foo.bar&#39;</span><span class="p">)</span>
2979 <span class="o">-&gt;</span><span class="na">supportMentions</span><span class="p">()</span>
2980 <span class="o">-&gt;</span><span class="na">supportQuotes</span><span class="p">()</span>
2981</code></pre></div>
0c5338dd
TD
2982<h3 id="wysiwygformfield"><code>WysiwygFormField</code><a class="headerlink" href="#wysiwygformfield" title="Permanent link">#</a></h3>
2983<p><code>WysiwygFormField</code> is used for wysiwyg editor form fields.
2984This class should, in general, not be used directly but only via <code>WysiwygFormContainer</code>.
2985The 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>.
2986The following methods are specific to this form field class:</p>
2987<ul>
2988<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.
2989 An empty string signals that autosaving is disabled.</li>
2990<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.
2991 <code>0</code> signals that no last edit time has been set.</li>
2992<li><code>supportAttachments($supportAttachments)</code> and <code>supportsAttachments()</code> can be used to set and check if the form field supports attachments.</li>
2993</ul>
2994<p>!!! warning "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>."
2995- <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>
2996<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>
2997<h3 id="twysiwygformnode"><code>TWysiwygFormNode</code><a class="headerlink" href="#twysiwygformnode" title="Permanent link">#</a></h3>
2998<p>All form nodes that need to know the id of the <code>WysiwygFormField</code> field should use <code>TWysiwygFormNode</code>.
2999This trait provides <code>getWysiwygId()</code> and <code>wysiwygId($wysiwygId)</code> to get and set the relevant wysiwyg editor id.</p>
3000<h2 id="single-use-form-fields">Single-Use Form Fields<a class="headerlink" href="#single-use-form-fields" title="Permanent link">#</a></h2>
3001<p>The following form fields are specific for certain forms and hardly reusable in other contexts.</p>
3002<h3 id="bbcodeattributesformfield"><code>BBCodeAttributesFormField</code><a class="headerlink" href="#bbcodeattributesformfield" title="Permanent link">#</a></h3>
3003<p><code>DevtoolsProjectExcludedPackagesFormField</code> is a form field for setting the attributes of a BBCode.</p>
3004<h3 id="devtoolsprojectexcludedpackagesformfield"><code>DevtoolsProjectExcludedPackagesFormField</code><a class="headerlink" href="#devtoolsprojectexcludedpackagesformfield" title="Permanent link">#</a></h3>
3005<p><code>DevtoolsProjectExcludedPackagesFormField</code> is a form field for setting the excluded packages of a devtools project.</p>
3006<h3 id="devtoolsprojectinstructionsformfield"><code>DevtoolsProjectInstructionsFormField</code><a class="headerlink" href="#devtoolsprojectinstructionsformfield" title="Permanent link">#</a></h3>
3007<p><code>DevtoolsProjectExcludedPackagesFormField</code> is a form field for setting the installation and update instructions of a devtools project.</p>
3008<h3 id="devtoolsprojectoptionalpackagesformfield"><code>DevtoolsProjectOptionalPackagesFormField</code><a class="headerlink" href="#devtoolsprojectoptionalpackagesformfield" title="Permanent link">#</a></h3>
3009<p><code>DevtoolsProjectExcludedPackagesFormField</code> is a form field for setting the optional packages of a devtools project.</p>
3010<h3 id="devtoolsprojectrequiredpackagesformfield"><code>DevtoolsProjectRequiredPackagesFormField</code><a class="headerlink" href="#devtoolsprojectrequiredpackagesformfield" title="Permanent link">#</a></h3>
3011<p><code>DevtoolsProjectExcludedPackagesFormField</code> is a form field for setting the required packages of a devtools project.</p>
3012
4a5c32e1
WG
3013
3014
3015
3016<hr>
3017<div class="md-source-date">
3018 <small>
3019
3020 Last update: 2021-01-16
3021
3022 </small>
3023</div>
3024
3025
0c5338dd
TD
3026
3027
3028
3029
3030
3031
3032 </article>
3033 </div>
3034 </div>
3035 </main>
3036
3037
3038<footer class="md-footer">
3039
3040 <nav class="md-footer__inner md-grid" aria-label="Footer">
3041
3042 <a href="../structure/" class="md-footer__link md-footer__link--prev" rel="prev">
3043 <div class="md-footer__button md-icon">
3044 <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>
3045 </div>
3046 <div class="md-footer__title">
3047 <div class="md-ellipsis">
3048 <span class="md-footer__direction">
3049 Previous
3050 </span>
3051 Structure
3052 </div>
3053 </div>
3054 </a>
3055
3056
3057 <a href="../validation_data/" class="md-footer__link md-footer__link--next" rel="next">
3058 <div class="md-footer__title">
3059 <div class="md-ellipsis">
3060 <span class="md-footer__direction">
3061 Next
3062 </span>
3063 Validation and Data
3064 </div>
3065 </div>
3066 <div class="md-footer__button md-icon">
3067 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
3068 </div>
3069 </a>
3070
3071 </nav>
3072
3073 <div class="md-footer-meta md-typeset">
3074 <div class="md-footer-meta__inner md-grid">
3075 <div class="md-footer-copyright">
3076
3077 <div class="md-footer-copyright__highlight">
3078 Copyright © 2020 WoltLab GmbH
3079 </div>
3080
3081 Made with
3082 <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
3083 Material for MkDocs
3084 </a>
fb88dc6e 3085
0c5338dd
TD
3086 </div>
3087 <div class="md-footer-copyright">
3088 <a href="https://www.woltlab.com/legal-notice/">Legal Notice</a>
3089 <a href="https://www.woltlab.com/privacy-policy/">Privacy Policy</a>
3090</div>
3091 </div>
3092 </div>
3093</footer>
3094
3095 </div>
3096 <div class="md-dialog" data-md-component="dialog">
3097 <div class="md-dialog__inner md-typeset"></div>
3098 </div>
3099 <script id="__config" type="application/json">{"base": "../../../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing"}, "search": "../../../../assets/javascripts/workers/search.fb4a9340.min.js", "version": {"provider": "mike"}}</script>
3100
3101
fb88dc6e 3102 <script src="../../../../assets/javascripts/bundle.5cf3e710.min.js"></script>
0c5338dd
TD
3103
3104
3105 </body>
3106</html>