ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
simple.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\MainControls\SystemInfo
;
6
7
use
ILIAS\Data\URI
;
8
9
function
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
}
ILIAS\UI\examples\MainControls\SystemInfo\simple
simple()
Definition:
simple.php:9
$DIC
global $DIC
Definition:
feed.php:28
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:10
ILIAS\Data\URI
The scope of this class is split ilias-conform URI's into components.
Definition:
URI.php:34
URI
ILIAS\UI\examples\MainControls\SystemInfo
Definition:
long_text.php:5
src
UI
examples
MainControls
SystemInfo
simple.php
Generated on Sun Aug 31 2025 22:02:49 for ILIAS by
1.8.13 (using
Doxyfile
)