ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
base.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function base()
34{
35 global $DIC;
36 $f = $DIC->ui()->factory();
37 $r = $DIC->ui()->renderer();
38
39 //construct with options and labels for aria and button.
40 $fs = $f->input()->viewControl()->fieldSelection(
41 [
42 'c1' => 'column 1',
43 'c2' => 'column 2',
44 'x' => '...'
45 ],
46 'shown columns',
47 'apply'
48 );
49
50 //it's more fun to view this in a ViewControlContainer
51 $vc_container = $f->input()->container()->viewControl()->standard([$fs])
52 ->withRequest($DIC->http()->request());
53
54 return $r->render([
55 $f->legacy()->content('<pre>' . print_r($vc_container->getData(), true) . '</pre>'),
56 $f->divider()->horizontal(),
57 $vc_container
58 ]);
59}
global $DIC
Definition: shib_login.php:26