22 array_unshift($this->messages , $message);
31 $this->messages[] = $message;
61 $joined_messages = [];
63 if(!array_key_exists($message->getTypeId(),$joined_messages)){
64 $joined_messages[$message->getTypeId()] =
"";
66 $joined_messages[$message->getTypeId()] .= $message->getMessageOutput();
68 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.
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.