ILIAS  release_7 Revision v7.30-3-g800a261c036
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.

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
19Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
20tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
21vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
22no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
23consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
24dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
25dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
26ipsum dolor sit amet.
27TEXT
28 );
29
30 return $renderer->render([$long_text]);
31}
global $DIC
Definition: goto.php:24

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