24 array_unshift($this->messages,
$message);
47 ilUtil::sendSuccess($joined_message, $keep);
66 $joined_messages = [];
68 if (!array_key_exists(
$message->getTypeId(), $joined_messages)) {
69 $joined_messages[
$message->getTypeId()] =
"";
73 return $joined_messages;
An exception for terminatinating execution or to throw for unit testing.
Used to stack messages to be shown to the user.
hasMessages()
Return wheter there are any message at all stored in the stack.
sendMessages($keep=false)
Send messages via ilUtil to be displayed.
prependMessage(ilSystemStyleMessage $message)
Add a message to be displayed before all others.
getJoinedMessages()
Return an array containing a string with all messages for each type.
addMessage(ilSystemStyleMessage $message)
Add a message to be displayed by the stack.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.