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