ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\examples\MainControls\SystemInfo Namespace Reference

Functions

 long_text ()
 

description: > This example show how the UI-Elements itself looks like. More...

 
 multiple ()
 

description: > This example show how the UI-Elements itself looks like. More...

 
 simple ()
 

description: > This example show how the UI-Elements itself looks like. More...

 

Function Documentation

◆ long_text()

ILIAS\UI\examples\MainControls\SystemInfo\long_text ( )


description: > This example show how the UI-Elements itself looks like.

For a full example use the example of the UI-Component Layout.

expected output: > ILIAS shows a box with a longish text. The text is terminated by three dots,

and will expand to its full length when clicking those dots.

Definition at line 36 of file long_text.php.

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

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

◆ multiple()

ILIAS\UI\examples\MainControls\SystemInfo\multiple ( )


description: > This example show how the UI-Elements itself looks like.

For a full example use the example of the UI-Component Layout.

expected output: > Instead of but one message, ILIAS will display three messages in differently

colored boxes. The intensity of the colors decreases from top to bottom.

Definition at line 36 of file multiple.php.

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

Referenced by ilTaxonomySettingsGUI\__construct(), ilEditClipboardGUI\__construct(), ilTaxonomySettingsGUI\listTaxonomies(), ilObjTaxonomyGUI\setMultiple(), and ilEditClipboardGUI\setMultipleSelections().

37 {
38  global $DIC;
39  $f = $DIC->ui()->factory();
40  $renderer = $DIC->ui()->renderer();
41 
42  $first = $f->mainControls()
43  ->systemInfo('This is the first Message!', 'content of the first message...')
44  ->withDenotation(SystemInfo::DENOTATION_BREAKING);
45  $second = $f->mainControls()
46  ->systemInfo('This is the second Message!', 'content of the second message...')
47  ->withDenotation(SystemInfo::DENOTATION_IMPORTANT);
48  $third = $f->mainControls()
49  ->systemInfo('This is the third Message!', 'content of the third message...');
50 
51  return $renderer->render([$first, $second, $third]);
52 }
$renderer
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function:

◆ simple()

ILIAS\UI\examples\MainControls\SystemInfo\simple ( )


description: > This example show how the UI-Elements itself looks like.

For a full example use the example of the UI-Component Layout.

expected output: > ILIAS shows a box with a message text. The message is dismissable with the close-glyph on the right and will vanish

when clicking the glyph.

Definition at line 37 of file simple.php.

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

Referenced by ilXlsFoParserTest\nonBreakingSpaceIsAddedDataProvider(), ilXlsFoParserTest\noNonBreakingSpaceIsAddedDataProvider(), SimpleNodeTest\testRendering(), and SimpleNodeTest\testRenderingWithAsync().

38 {
39  //
40  //
41 
42  global $DIC;
43  $f = $DIC->ui()->factory();
44  $renderer = $DIC->ui()->renderer();
45 
46  $dismiss_action = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : "http://localhost";
47  $systemInfo = $f->mainControls()
48  ->systemInfo('This is an neutral Message!', 'read it, understand it, dismiss it...')
49  ->withDismissAction(new URI($dismiss_action));
50 
51  return $renderer->render([$systemInfo]);
52 }
$renderer
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function: