4include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleMessage.php");
5include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleMessageStack.php");
56 $this->assertTrue($this->messages[0]->getMessage() === $this->messageStringThree);
59 $this->assertTrue($this->messages[1]->getMessage() === $this->messageStringTwo);
62 $this->assertTrue($this->messages[2]->getMessage() === $this->messageStringOne);
78 $this->assertTrue($this->messages[2]->getMessage() === $this->messageStringThree);
81 $this->assertTrue($this->messages[1]->getMessage() === $this->messageStringTwo);
84 $this->assertTrue($this->messages[0]->getMessage() === $this->messageStringOne);
111 "</br>" .
"Another SUCCESS message" .
"</br>");
113 "</br>" .
"Another ERROR message" .
"</br>" .
"YET another ERROR message" .
"</br>");
An exception for terminatinating execution or to throw for unit testing.
$ilSystemStyleMessageStack
Used to stack messages to be shown to the user.
hasMessages()
Return wheter there are any message at all stored in the stack.
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.