ILIAS  release_8 Revision v8.24
simple.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
8
9function simple()
10{
11 //
12 // This example show how the UI-Elements itself looks like. For a full
13 // example use the example of the UI-Component Layout\Page\Standard.
14 //
15
16 global $DIC;
17 $f = $DIC->ui()->factory();
18 $renderer = $DIC->ui()->renderer();
19
20 $dismiss_action = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : "http://localhost";
21 $systemInfo = $f->mainControls()
22 ->systemInfo('This is an neutral Message!', 'read it, understand it, dismiss it...')
23 ->withDismissAction(new URI($dismiss_action));
24
25 return $renderer->render([$systemInfo]);
26}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
global $DIC
Definition: feed.php:28
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10