ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
long_text.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
36 function long_text()
37 {
38  global $DIC;
39  $f = $DIC->ui()->factory();
40  $renderer = $DIC->ui()->renderer();
41 
42  $long_text = $f->mainControls()->systemInfo(
43  'This Message has a long body',
44  <<<TEXT
45 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
46 tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
47 vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
48 no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
49 consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
50 dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
51 dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
52 ipsum dolor sit amet.
53 TEXT
54  );
55 
56  return $renderer->render([$long_text]);
57 }
$renderer
global $DIC
Definition: shib_login.php:22
long_text()
description: > This example show how the UI-Elements itself looks like.
Definition: long_text.php:36