4 include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleMessage.php");
5 include_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>");
$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.
Create styles array
The data for the language used.
Used to stack messages to be shown to the user.
getJoinedMessages()
Return an array containing a string with all messages for each type.