ILIAS  release_8 Revision v8.24
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.

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

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

◆ inside_panel()

ILIAS\UI\examples\Legacy\inside_panel ( )

Definition at line 7 of file inside_panel.php.

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}
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Definition: imgupload.php:198

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