ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\UI\examples\MessageBox\Confirmation Namespace Reference

Functions

 confirmation ()
 

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.

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:26

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

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

+ Here is the caller graph for this function: