ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
simple.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
37function simple()
38{
39 //
40 //
41
42 global $DIC;
43 $f = $DIC->ui()->factory();
44 $renderer = $DIC->ui()->renderer();
45
46 $dismiss_action = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : "http://localhost";
47 $systemInfo = $f->mainControls()
48 ->systemInfo('This is an neutral Message!', 'read it, understand it, dismiss it...')
49 ->withDismissAction(new URI($dismiss_action));
50
51 return $renderer->render([$systemInfo]);
52}
$renderer
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26
global $DIC
Definition: shib_login.php:26