4 include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleMessage.php");
5 include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleMessageStack.php");
58 $this->assertTrue($this->messages[0]->getMessage() === $this->messageStringThree);
61 $this->assertTrue($this->messages[1]->getMessage() === $this->messageStringTwo);
64 $this->assertTrue($this->messages[2]->getMessage() === $this->messageStringOne);
81 $this->assertTrue($this->messages[2]->getMessage() === $this->messageStringThree);
84 $this->assertTrue($this->messages[1]->getMessage() === $this->messageStringTwo);
87 $this->assertTrue($this->messages[0]->getMessage() === $this->messageStringOne);
115 "</br>" .
"Another SUCCESS message" .
"</br>");
117 "</br>" .
"Another ERROR message" .
"</br>" .
"YET another ERROR message" .
"</br>");
$ilSystemStyleMessageStack
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.
Used to stack messages to be shown to the user.
getJoinedMessages()
Return an array containing a string with all messages for each type.