ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
inside_panel.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
5function inside_panel() {
6 //Init Factory and Renderer
7 global $DIC;
8 $f = $DIC->ui()->factory();
9 $renderer = $DIC->ui()->renderer();
10
11 //Init Component
12 $legacy = $f->legacy("Legacy Content");
13 $panel = $f->panel()->standard("Panel Title",$legacy);
14
15 //Render
16 return $renderer->render($panel);
17}
An exception for terminatinating execution or to throw for unit testing.
inside_panel()
Definition: inside_panel.php:5
global $DIC