ILIAS  release_7 Revision v7.30-3-g800a261c036
legacy.php
Go to the documentation of this file.
1<?php
2
3function legacy()
4{
5 global $DIC;
6 $f = $DIC->ui()->factory();
7 $renderer = $DIC->ui()->renderer();
8
9 $icon = $f->symbol()->glyph()->comment();
10 $contents = $f->legacy("some <i>html</i>.");
11
12 $slate = $f->maincontrols()->slate()->legacy('legacy_example', $icon, $contents);
13
14 $triggerer = $f->button()->bulky(
15 $slate->getSymbol(),
16 $slate->getName(),
17 '#'
18 )
19 ->withOnClick($slate->getToggleSignal());
20
21 return $renderer->render([
22 $triggerer,
23 $slate
24 ]);
25}
An exception for terminatinating execution or to throw for unit testing.
global $DIC
Definition: goto.php:24
legacy()
Definition: legacy.php:3