ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Used to stack messages to be shown to the user. More...
Public Member Functions | |
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... | |
sendMessages ($keep=false) | |
Send messages via ilUtil to be displayed. More... | |
getJoinedMessages () | |
Return an array containing a string with all messages for each type. More... | |
getMessages () | |
setMessages ($messages) | |
hasMessages () | |
Return wheter there are any message at all stored in the stack. More... | |
Protected Attributes | |
$messages = array() | |
Used to stack messages to be shown to the user.
Mostly used in ilUtil-Classes to present via ilUtil::sendMessage()
Definition at line 9 of file class.ilSystemStyleMessageStack.php.
ilSystemStyleMessageStack::addMessage | ( | ilSystemStyleMessage | $message | ) |
Add a message to be displayed by the stack.
ilSystemStyleMessage | $message |
Definition at line 32 of file class.ilSystemStyleMessageStack.php.
References $message.
Referenced by ilSystemStyleOverviewGUI\checkDeletable(), ilSystemStyleOverviewGUI\checkStyleSettings(), ilSystemStyleSkinContainer\create(), ilSystemStyleSettingsGUI\saveStyle(), ilSystemStyleMessageStackTest\testAddMessage(), ilSystemStyleMessageStackTest\testGetAndSetMessages(), ilSystemStyleMessageStackTest\testHasMessages(), and ilSystemStyleMessageStackTest\testJoinedMessages().
ilSystemStyleMessageStack::getJoinedMessages | ( | ) |
Return an array containing a string with all messages for each type.
Definition at line 64 of file class.ilSystemStyleMessageStack.php.
References $message, and getMessages().
Referenced by sendMessages(), and ilSystemStyleMessageStackTest\testJoinedMessages().
ilSystemStyleMessageStack::getMessages | ( | ) |
Definition at line 79 of file class.ilSystemStyleMessageStack.php.
References $messages.
Referenced by getJoinedMessages(), hasMessages(), ilSystemStyleMessageStackTest\testAddMessage(), ilSystemStyleMessageStackTest\testGetAndSetMessages(), and ilSystemStyleMessageStackTest\testPrependMessage().
ilSystemStyleMessageStack::hasMessages | ( | ) |
Return wheter there are any message at all stored in the stack.
Definition at line 97 of file class.ilSystemStyleMessageStack.php.
References getMessages().
Referenced by ilSystemStyleMessageStackTest\testHasMessages().
ilSystemStyleMessageStack::prependMessage | ( | ilSystemStyleMessage | $message | ) |
Add a message to be displayed before all others.
ilSystemStyleMessage | $message |
Definition at line 22 of file class.ilSystemStyleMessageStack.php.
Referenced by ilSystemStyleMessageStackTest\testPrependMessage().
ilSystemStyleMessageStack::sendMessages | ( | $keep = false | ) |
Send messages via ilUtil to be displayed.
bool | false | $keep |
Definition at line 42 of file class.ilSystemStyleMessageStack.php.
References $type, getJoinedMessages(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilSystemStyleMessage\TYPE_ERROR, ilSystemStyleMessage\TYPE_INFO, and ilSystemStyleMessage\TYPE_SUCCESS.
ilSystemStyleMessageStack::setMessages | ( | $messages | ) |
ilSystemStyleMessage[] | $messages |
Definition at line 87 of file class.ilSystemStyleMessageStack.php.
References $messages.
|
protected |
Definition at line 15 of file class.ilSystemStyleMessageStack.php.
Referenced by getMessages(), and setMessages().