Flash Messenger - implement session-based messages
Set the session manager
Parameters: | Manager – |
---|---|
Return type: | FlashMessenger |
Retrieve the session manager
If none composed, lazy-loads a SessionManager instance
Return type: | Manager |
---|
Get session container for flash messages
Return type: | Container |
---|
Change the namespace messages are added to
Useful for per action controller messaging between requests
Parameters: | string – |
---|---|
Return type: | FlashMessenger Provides a fluent interface |
Add a message
Parameters: | string – |
---|---|
Return type: | FlashMessenger Provides a fluent interface |
Add a message with “info” type
Parameters: | string – |
---|---|
Return type: | FlashMessenger |
Add a message with “success” type
Parameters: | string – |
---|---|
Return type: | FlashMessenger |
Add a message with “error” type
Parameters: | string – |
---|---|
Return type: | FlashMessenger |
Whether “info” namespace has messages
Return type: | boolean |
---|
Whether “success” namespace has messages
Return type: | boolean |
---|
Whether “error” namespace has messages
Return type: | boolean |
---|
Get messages from “info” namespace
Return type: | array |
---|
Get messages from “success” namespace
Return type: | array |
---|
Get messages from “error” namespace
Return type: | array |
---|
Clear all messages from the previous request & current namespace
Return type: | bool True if messages were cleared, false if none existed |
---|
Clear all messages from specific namespace
Return type: | boolean True if messages were cleared, false if none existed |
---|
Clear all messages from the container
Return type: | boolean True if messages were cleared, false if none existed |
---|
Check to see if messages have been added to the current namespace within this request
Return type: | bool |
---|
Check to see if messages have been added to “info” namespace within this request
Return type: | boolean |
---|
Check to see if messages have been added to “success” namespace within this request
Return type: | boolean |
---|
Check to see if messages have been added to “error” namespace within this request
Return type: | boolean |
---|
Get messages that have been added to the current namespace within this request
Return type: | array |
---|
Get messages that have been added to the “info” namespace within this request
Return type: | array |
---|
Get messages that have been added to the “success” namespace within this request
Return type: | array |
---|
Get messages that have been added to the “error” namespace within this request
Return type: | array |
---|
Get messages that have been added to the current namespace in specific namespace
Return type: | array |
---|
Clear messages from the current request and current namespace
Return type: | bool |
---|
Clear messages from the current namespace
Return type: | boolean |
---|
Clear messages from the container
Return type: | boolean |
---|
Complete the IteratorAggregate interface, for iterating
Return type: | ArrayIterator |
---|
Complete the countable interface
Return type: | int |
---|