24 array_unshift($this->messages, $message);
66 $joined_messages = [];
68 if (!array_key_exists($message->getTypeId(), $joined_messages)) {
69 $joined_messages[$message->getTypeId()] =
"";
71 $joined_messages[$message->getTypeId()] .= $message->getMessageOutput();
73 return $joined_messages;
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
hasMessages()
Return wheter there are any message at all stored in the stack.
addMessage(ilSystemStyleMessage $message)
Add a message to be displayed by the stack.
prependMessage(ilSystemStyleMessage $message)
Add a message to be displayed before all others.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
catch(Exception $e) $message
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Used to stack messages to be shown to the user.
getJoinedMessages()
Return an array containing a string with all messages for each type.
sendMessages($keep=false)
Send messages via ilUtil to be displayed.