ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MessageBox.php
Go to the documentation of this file.
1<?php
2
19declare(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}
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.
Flags some Component to be a valid content of a Prompt.