ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\UI\Component as C;
24 
25 class Factory implements C\MessageBox\Factory
26 {
27  public function failure(string $message_text): MessageBox
28  {
29  return new MessageBox(C\MessageBox\MessageBox::FAILURE, $message_text);
30  }
31 
32  public function success(string $message_text): MessageBox
33  {
34  return new MessageBox(C\MessageBox\MessageBox::SUCCESS, $message_text);
35  }
36 
37  public function info(string $message_text): MessageBox
38  {
39  return new MessageBox(C\MessageBox\MessageBox::INFO, $message_text);
40  }
41 
42  public function confirmation(string $message_text): MessageBox
43  {
44  return new MessageBox(C\MessageBox\MessageBox::CONFIRMATION, $message_text);
45  }
46 }
The progress of the process/task cannot be calculated (yet), but it has started processing.
Definition: Status.php:42