ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MessageBox.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2018 Thomas Famula <famula@leifos.de> Extended GPL, see docs/LICENSE */
4 
6 
8 
12 interface MessageBox extends Component
13 {
14  // Types of Message Boxes:
15  const FAILURE = "failure";
16  const SUCCESS = "success";
17  const INFO = "info";
18  const CONFIRMATION = "confirmation";
19 
25  public function getType();
26 
32  public function getMessageText();
33 
39  public function getButtons() : array;
40 
46  public function getLinks() : array;
47 
54  public function withButtons(array $buttons);
55 
62  public function withLinks(array $links);
63 }
withButtons(array $buttons)
Get a Message Box like this, but with buttons.
withLinks(array $links)
Get a Message Box like this, but with links.
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.
$links
getLinks()
Get the links of the Message Box.