ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
base.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Input\ViewControl\FieldSelection
;
22
33
function
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
}
ILIAS\UI\examples\Input\ViewControl\FieldSelection
Definition:
base.php:21
ILIAS\UI\examples\Input\ViewControl\FieldSelection\base
base()
Definition:
base.php:33
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Input
ViewControl
FieldSelection
base.php
Generated on Sat Oct 18 2025 23:04:39 for ILIAS by
1.9.4 (using
Doxyfile
)