ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
legacy.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\MainControls\Slate\Legacy
;
6
7
function
legacy
()
8
{
9
global
$DIC
;
10
$f
= $DIC->ui()->factory();
11
$renderer = $DIC->ui()->renderer();
12
13
$icon =
$f
->symbol()->glyph()->comment();
14
$contents =
$f
->legacy(
"some <i>html</i>."
);
15
16
$slate =
$f
->maincontrols()->slate()->legacy(
'legacy_example'
, $icon, $contents);
17
18
$triggerer =
$f
->button()->bulky(
19
$slate->getSymbol(),
20
$slate->getName(),
21
'#'
22
)
23
->withOnClick($slate->getToggleSignal());
24
25
return
$renderer->render([
26
$triggerer,
27
$slate
28
]);
29
}
ILIAS\UI\examples\MainControls\Slate\Legacy
Definition:
legacy.php:5
$DIC
global $DIC
Definition:
feed.php:28
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
ILIAS\UI\examples\MainControls\Slate\Legacy\legacy
legacy()
Definition:
legacy.php:7
src
UI
examples
MainControls
Slate
Legacy
legacy.php
Generated on Sun Aug 31 2025 22:02:49 for ILIAS by
1.8.13 (using
Doxyfile
)