ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 30 of file class.ilSystemStyleMessageStack.php.
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 60 of file class.ilSystemStyleMessageStack.php.
References getMessages().
Referenced by sendMessages(), and ilSystemStyleMessageStackTest\testJoinedMessages().
ilSystemStyleMessageStack::getMessages | ( | ) |
Definition at line 74 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 92 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 21 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 39 of file class.ilSystemStyleMessageStack.php.
References getJoinedMessages(), ilUtil\sendFailure(), ilUtil\sendInfo(), ilUtil\sendSuccess(), ilSystemStyleMessage\TYPE_ERROR, ilSystemStyleMessage\TYPE_INFO, and ilSystemStyleMessage\TYPE_SUCCESS.
ilSystemStyleMessageStack::setMessages | ( | $messages | ) |
ilSystemStyleMessage[] | $messages |
Definition at line 82 of file class.ilSystemStyleMessageStack.php.
References $messages.
|
protected |
Definition at line 14 of file class.ilSystemStyleMessageStack.php.
Referenced by getMessages(), and setMessages().