ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
legacy.php File Reference

Go to the source code of this file.

Functions

 legacy ()
 

Function Documentation

◆ legacy()

legacy ( )

Definition at line 3 of file legacy.php.

References $DIC, and Vendor\Package\$f.

Referenced by ILIAS\UI\Implementation\Component\Panel\Secondary\Legacy\__construct(), PopoverTest\getFactory(), RepositoryObjectTest\getFactory(), CardTest\getFactory(), ModalBase\getUIFactory(), LegacyTest\getUIFactory(), DrilldownTest\getUIFactory(), PanelSecondaryLegacyTest\getUIFactory(), DropzoneRendererTest\getUIFactory(), ILIAS\UI\Implementation\Component\Dropzone\File\Renderer\renderWrapper(), DrilldownTest\setUp(), PopoverTest\test_render_async(), PopoverTest\test_render_standard(), RoundTripTest\test_simple_rendering(), MainBarTest\testSignalsPresent(), and DrilldownTest\testWithWrongEntry().

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 }
global $DIC
Definition: goto.php:24
+ Here is the caller graph for this function: