ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ILIAS\UI\examples\Legacy Namespace Reference

Functions

 base ()
 

description: > Example for rendering a legacy box with an inside panel. More...

 
 inside_panel ()
 

description: > Example for rendering a legacy box. More...

 

Function Documentation

◆ base()

ILIAS\UI\examples\Legacy\base ( )


description: > Example for rendering a legacy box with an inside panel.

expected output: >

ILIAS shows a box including the text "Legacy Content".

Definition at line 16 of file base.php.

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

17 {
18  //Init Factory and Renderer
19  global $DIC;
20  $f = $DIC->ui()->factory();
21  $renderer = $DIC->ui()->renderer();
22 
23  //Init Component
24  $legacy = $f->legacy("Legacy Content");
25 
26  //Render
27  return $renderer->render($legacy);
28 }
$renderer
global $DIC
Definition: shib_login.php:25

◆ inside_panel()

ILIAS\UI\examples\Legacy\inside_panel ( )


description: > Example for rendering a legacy box.

expected output: > ILIAS shows a box titled "Panel Title" and a grey background. In the lower part of the box the text "Legacy Content"

on a white background is written.

Definition at line 17 of file inside_panel.php.

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

18 {
19  //Init Factory and Renderer
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  //Init Component
25  $legacy = $f->legacy("Legacy Content");
26  $panel = $f->panel()->standard("Panel Title", $legacy);
27 
28  //Render
29  return $renderer->render($panel);
30 }
$renderer
global $DIC
Definition: shib_login.php:25