ILIAS  release_8 Revision v8.23
long_text.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
8 
9 function long_text()
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  $long_text = $f->mainControls()->systemInfo(
21  'This Message has a long body',
22  <<<TEXT
23 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
24 tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
25 vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
26 no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
27 consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
28 dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
29 dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
30 ipsum dolor sit amet.
31 TEXT
32  );
33 
34  return $renderer->render([$long_text]);
35 }
global $DIC
Definition: feed.php:28