ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
simple.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
8 
21 function simple()
22 {
23  //
24  //
25 
26  global $DIC;
27  $f = $DIC->ui()->factory();
28  $renderer = $DIC->ui()->renderer();
29 
30  $dismiss_action = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : "http://localhost";
31  $systemInfo = $f->mainControls()
32  ->systemInfo('This is an neutral Message!', 'read it, understand it, dismiss it...')
33  ->withDismissAction(new URI($dismiss_action));
34 
35  return $renderer->render([$systemInfo]);
36 }
simple()
description: > This example show how the UI-Elements itself looks like.
Definition: simple.php:21
$renderer
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
global $DIC
Definition: shib_login.php:25
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:34