ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
simple.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\MainControls\SystemInfo
;
22
23
use
ILIAS\Data\URI
;
24
37
function
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
}
ILIAS\UI\examples\MainControls\SystemInfo\simple
simple()
description: > This example show how the UI-Elements itself looks like.
Definition:
simple.php:37
$renderer
$renderer
Definition:
build_bootstrap.php:83
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$_SERVER
$_SERVER['HTTP_HOST']
Definition:
raiseError.php:26
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\Data\URI
ILIAS\UI\examples\MainControls\SystemInfo
Definition:
long_text.php:21
components
ILIAS
UI
src
examples
MainControls
SystemInfo
simple.php
Generated on Sun Aug 31 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)