ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
legacy.php
Go to the documentation of this file.
1 <?php
2 
3 function 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 }
$DIC
Definition: xapitoken.php:46
legacy()
Definition: legacy.php:3