ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\UI\examples\Legacy Namespace Reference

Functions

 base ()
 
 inside_panel ()
 

Function Documentation

◆ base()

ILIAS\UI\examples\Legacy\base ( )

Definition at line 7 of file base.php.

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

8 {
9  //Init Factory and Renderer
10  global $DIC;
11  $f = $DIC->ui()->factory();
12  $renderer = $DIC->ui()->renderer();
13 
14  //Init Component
15  $legacy = $f->legacy("Legacy Content");
16 
17  //Render
18  return $renderer->render($legacy);
19 }
global $DIC
Definition: feed.php:28

◆ inside_panel()

ILIAS\UI\examples\Legacy\inside_panel ( )

Definition at line 7 of file inside_panel.php.

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

8 {
9  //Init Factory and Renderer
10  global $DIC;
11  $f = $DIC->ui()->factory();
12  $renderer = $DIC->ui()->renderer();
13 
14  //Init Component
15  $legacy = $f->legacy("Legacy Content");
16  $panel = $f->panel()->standard("Panel Title", $legacy);
17 
18  //Render
19  return $renderer->render($panel);
20 }
global $DIC
Definition: feed.php:28