ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
MessageBox.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
30 {
31  // Types of Message Boxes:
32  public const FAILURE = "failure";
33  public const SUCCESS = "success";
34  public const INFO = "info";
35  public const CONFIRMATION = "confirmation";
36 
40  public function getType(): string;
41 
45  public function getMessageText(): string;
46 
52  public function getButtons(): array;
53 
59  public function getLinks(): array;
60 
66  public function withButtons(array $buttons): MessageBox;
67 
73  public function withLinks(array $links): MessageBox;
74 }
withButtons(array $buttons)
Get a Message Box like this, but with buttons.
withLinks(array $links)
Get a Message Box like this, but with links.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getButtons()
Get the buttons of the Message Box.
getType()
Get the type of the Message Box.
getMessageText()
Get the message text of the Message Box.
getLinks()
Get the links of the Message Box.
Flags some Component to be a valid content of a Prompt.