ILIAS
trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
|
Used to stack messages to be shown to the user. More...
Public Member Functions | |
__construct (ilGlobalTemplateInterface $main_tpl) | |
prependMessage (ilSystemStyleMessage $message) | |
Add a message to be displayed before all others. More... | |
addMessage (ilSystemStyleMessage $message) | |
Add a message to be displayed by the stack. More... | |
getUIComponentsMessages (\ILIAS\UI\Factory $f) | |
Return Messages as UI Component. More... | |
getJoinedMessages () | |
Return an array containing a string with all messages for each type. More... | |
getMessages () | |
setMessages (array $messages) | |
hasMessages () | |
Return wheter there are any message at all stored in the stack. More... | |
sendMessages (bool $keep=true) | |
Send messages via ilUtil to be displayed, still needed for messagees, that need to survive a redirect. More... | |
Protected Attributes | |
array | $messages = [] |
Private Attributes | |
ilGlobalTemplateInterface | $main_tpl |
Used to stack messages to be shown to the user.
Mostly used in ilUtil-Classes to present via ilUtil::sendMessage()
Definition at line 26 of file class.ilSystemStyleMessageStack.php.
ilSystemStyleMessageStack::__construct | ( | ilGlobalTemplateInterface | $main_tpl | ) |
Definition at line 33 of file class.ilSystemStyleMessageStack.php.
References $main_tpl.
ilSystemStyleMessageStack::addMessage | ( | ilSystemStyleMessage | $message | ) |
Add a message to be displayed by the stack.
Definition at line 49 of file class.ilSystemStyleMessageStack.php.
References $message.
Referenced by ilSystemStyleOverviewGUI\checkStyleSettings(), ilSystemStyleConfigGUI\handleStyleActivation(), ilSystemStyleMessageStackTest\testAddMessage(), ilSystemStyleMessageStackTest\testGetAndSetMessages(), ilSystemStyleMessageStackTest\testGetUIComponentsMessages(), ilSystemStyleMessageStackTest\testHasMessages(), and ilSystemStyleMessageStackTest\testJoinedMessages().
ilSystemStyleMessageStack::getJoinedMessages | ( | ) |
Return an array containing a string with all messages for each type.
Definition at line 82 of file class.ilSystemStyleMessageStack.php.
References $message, and getMessages().
Referenced by getUIComponentsMessages(), sendMessages(), and ilSystemStyleMessageStackTest\testJoinedMessages().
ilSystemStyleMessageStack::getMessages | ( | ) |
Definition at line 97 of file class.ilSystemStyleMessageStack.php.
References $messages.
Referenced by getJoinedMessages(), hasMessages(), ilSystemStyleMessageStackTest\testAddMessage(), ilSystemStyleMessageStackTest\testGetAndSetMessages(), and ilSystemStyleMessageStackTest\testPrependMessage().
ilSystemStyleMessageStack::getUIComponentsMessages | ( | \ILIAS\UI\Factory | $f | ) |
Return Messages as UI Component.
Definition at line 58 of file class.ilSystemStyleMessageStack.php.
References $messages, getJoinedMessages(), ilSystemStyleMessage\TYPE_ERROR, ilSystemStyleMessage\TYPE_INFO, and ilSystemStyleMessage\TYPE_SUCCESS.
Referenced by ilSystemStyleMessageStackTest\testGetUIComponentsMessages().
ilSystemStyleMessageStack::hasMessages | ( | ) |
Return wheter there are any message at all stored in the stack.
Definition at line 113 of file class.ilSystemStyleMessageStack.php.
References getMessages().
Referenced by ilSystemStyleMessageStackTest\testHasMessages().
ilSystemStyleMessageStack::prependMessage | ( | ilSystemStyleMessage | $message | ) |
Add a message to be displayed before all others.
Definition at line 41 of file class.ilSystemStyleMessageStack.php.
Referenced by ilSystemStyleMessageStackTest\testPrependMessage().
ilSystemStyleMessageStack::sendMessages | ( | bool | $keep = true | ) |
Send messages via ilUtil to be displayed, still needed for messagees, that need to survive a redirect.
Definition at line 121 of file class.ilSystemStyleMessageStack.php.
References getJoinedMessages(), ilSystemStyleMessage\TYPE_ERROR, ilSystemStyleMessage\TYPE_INFO, and ilSystemStyleMessage\TYPE_SUCCESS.
ilSystemStyleMessageStack::setMessages | ( | array | $messages | ) |
ilSystemStyleMessage[] | $messages |
Definition at line 105 of file class.ilSystemStyleMessageStack.php.
References $messages.
|
private |
Definition at line 32 of file class.ilSystemStyleMessageStack.php.
Referenced by __construct().
|
protected |
Definition at line 31 of file class.ilSystemStyleMessageStack.php.
Referenced by getMessages(), getUIComponentsMessages(), and setMessages().