|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Used to stack messages to be shown to the user. More...
Collaboration diagram for ilSystemStyleMessageStack: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(), ilSystemStyleSettingsGUI\saveStyle(), ilSystemStyleMessageStackTest\testAddMessage(), ilSystemStyleMessageStackTest\testGetAndSetMessages(), ilSystemStyleMessageStackTest\testHasMessages(), and ilSystemStyleMessageStackTest\testJoinedMessages().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSystemStyleMessageStack::getMessages | ( | ) |
Definition at line 79 of file class.ilSystemStyleMessageStack.php.
References $messages.
Referenced by getJoinedMessages(), hasMessages(), ilSystemStyleMessageStackTest\testAddMessage(), ilSystemStyleMessageStackTest\testGetAndSetMessages(), and ilSystemStyleMessageStackTest\testPrependMessage().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSystemStyleMessageStack::prependMessage | ( | ilSystemStyleMessage | $message | ) |
Add a message to be displayed before all others.
| ilSystemStyleMessage | $message |
Definition at line 22 of file class.ilSystemStyleMessageStack.php.
References $message.
Referenced by ilSystemStyleMessageStackTest\testPrependMessage().
Here is the caller graph for this function:| 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.
Here is the call graph for this function:| 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().