ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
multiple.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
8 
20 function multiple()
21 {
22  global $DIC;
23  $f = $DIC->ui()->factory();
24  $renderer = $DIC->ui()->renderer();
25 
26  $first = $f->mainControls()
27  ->systemInfo('This is the first Message!', 'content of the first message...')
28  ->withDenotation(SystemInfo::DENOTATION_BREAKING);
29  $second = $f->mainControls()
30  ->systemInfo('This is the second Message!', 'content of the second message...')
31  ->withDenotation(SystemInfo::DENOTATION_IMPORTANT);
32  $third = $f->mainControls()
33  ->systemInfo('This is the third Message!', 'content of the third message...');
34 
35  return $renderer->render([$first, $second, $third]);
36 }
$renderer
multiple()
description: > This example show how the UI-Elements itself looks like.
Definition: multiple.php:20
global $DIC
Definition: shib_login.php:25