ILIAS  release_8 Revision v8.24
MessageBox.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
24
28interface MessageBox extends Component
29{
30 // Types of Message Boxes:
31 public const FAILURE = "failure";
32 public const SUCCESS = "success";
33 public const INFO = "info";
34 public const CONFIRMATION = "confirmation";
35
39 public function getType(): string;
40
44 public function getMessageText(): string;
45
51 public function getButtons(): array;
52
58 public function getLinks(): array;
59
65 public function withButtons(array $buttons): MessageBox;
66
72 public function withLinks(array $links): MessageBox;
73}
A component is the most general form of an entity in the UI.
Definition: Component.php:28
getButtons()
Get the buttons of the Message Box.
withButtons(array $buttons)
Get a Message Box like this, but with buttons.
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.
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...
Definition: Factory.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...