|
ILIAS
release_8 Revision v8.24
|
Used to stack messages to be shown to the user. More...
Collaboration diagram for ilSystemStyleMessageStack: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\checkDeletable(), ilSystemStyleOverviewGUI\checkStyleSettings(), ilSkinStyleContainer\create(), ilSystemStyleIconsGUI\reset(), ilSystemStyleMessageStackTest\testAddMessage(), ilSystemStyleMessageStackTest\testGetAndSetMessages(), ilSystemStyleMessageStackTest\testGetUIComponentsMessages(), ilSystemStyleMessageStackTest\testHasMessages(), ilSystemStyleMessageStackTest\testJoinedMessages(), and ilSystemStyleIconsGUI\update().
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 82 of file class.ilSystemStyleMessageStack.php.
References $message, and getMessages().
Referenced by getUIComponentsMessages(), 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 97 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::getUIComponentsMessages | ( | \ILIAS\UI\Factory | $f | ) |
Return Messages as UI Component.
Definition at line 58 of file class.ilSystemStyleMessageStack.php.
References Vendor\Package\$f, $messages, $type, getJoinedMessages(), ilSystemStyleMessage\TYPE_ERROR, ilSystemStyleMessage\TYPE_INFO, and ilSystemStyleMessage\TYPE_SUCCESS.
Referenced by ilSystemStyleMessageStackTest\testGetUIComponentsMessages().
Here is the call graph for this function:
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 113 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.
Definition at line 41 of file class.ilSystemStyleMessageStack.php.
References $message.
Referenced by ilSystemStyleMessageStackTest\testPrependMessage().
Here is the caller graph for this function:| 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 $type, getJoinedMessages(), ilSystemStyleMessage\TYPE_ERROR, ilSystemStyleMessage\TYPE_INFO, and ilSystemStyleMessage\TYPE_SUCCESS.
Referenced by ilSystemStyleIconsGUI\reset(), and ilSystemStyleIconsGUI\update().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().