ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\UI\examples\MessageBox\Confirmation Namespace Reference

Functions

 confirmation ()
 

description: > Example for rendering a confirmation message box. More...

 

Function Documentation

◆ confirmation()

ILIAS\UI\examples\MessageBox\Confirmation\confirmation ( )


description: > Example for rendering a confirmation message box.

expected output: > ILIAS shows a yellow box with a dummy text and two buttons.

Clicking the buttons does not do anything.

Definition at line 33 of file confirmation.php.

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

Referenced by ILIAS\Setup\NoConfirmationException\__construct(), ILIAS\LegalDocuments\Administration\__construct(), and ILIAS\LegalDocuments\Administration\deleteDocumentsConfirmation().

34 {
35  global $DIC;
36  $f = $DIC->ui()->factory();
37  $renderer = $DIC->ui()->renderer();
38 
39  $buttons = [$f->button()->standard("Confirm", "#"), $f->button()->standard("Cancel", "#")];
40 
41  return $renderer->render($f->messageBox()->confirmation("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.")->withButtons($buttons));
42 }
$renderer
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function: