ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\examples\Legacy\Content 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\Content\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 32 of file base.php.

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

33 {
34  //Init Factory and Renderer
35  global $DIC;
36  $f = $DIC->ui()->factory();
37  $renderer = $DIC->ui()->renderer();
38 
39  //Init Component
40  $legacy = $f->legacy()->content("Legacy\Content");
41 
42  //Render
43  return $renderer->render($legacy);
44 }
$renderer
global $DIC
Definition: shib_login.php:22

◆ inside_panel()

ILIAS\UI\examples\Legacy\Content\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 33 of file inside_panel.php.

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

34 {
35  //Init Factory and Renderer
36  global $DIC;
37  $f = $DIC->ui()->factory();
38  $renderer = $DIC->ui()->renderer();
39 
40  //Init Component
41  $legacy = $f->legacy()->content("Legacy Content");
42  $panel = $f->panel()->standard("Panel Title", $legacy);
43 
44  //Render
45  return $renderer->render($panel);
46 }
$renderer
global $DIC
Definition: shib_login.php:22