ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
long_text.php File Reference

Go to the source code of this file.

Functions

 long_text ()
 

Function Documentation

◆ long_text()

long_text ( )

Definition at line 5 of file long_text.php.

References $DIC, and Vendor\Package\$f.

6 {
7  //
8  // This example show how the UI-Elements itself looks like. For a full
9  // example use the example of the UI-Component Layout\Page\Standard.
10  //
11 
12  global $DIC;
13  $f = $DIC->ui()->factory();
14  $renderer = $DIC->ui()->renderer();
15 
16  $long_text = $f->mainControls()->systemInfo(
17  'This Message has a long body',
18  <<<TEXT
19 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
20 tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
21 vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
22 no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
23 consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
24 dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
25 dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
26 ipsum dolor sit amet.
27 TEXT
28  );
29 
30  return $renderer->render([$long_text]);
31 }
global $DIC
Definition: goto.php:24