AutoExpireFlashBag
class AutoExpireFlashBag implements FlashBagInterface
AutoExpireFlashBag flash message container.
Methods
Constructor.
Gets this bag's name.
No description
Initializes the Bag.
Adds a flash message for type.
Gets flash messages for a given type.
Gets all flash messages.
Gets and clears flash from the stack.
Gets and clears flashes from the stack.
Sets all flash messages.
Registers a message for a given type.
Has flash messages for a given type?
Returns a list of all defined types.
Gets the storage key for this bag.
Clears out data from bag.
Details
at line line 42
__construct(string $storageKey = '_sf2_flashes')
Constructor.
at line line 50
string
getName()
Gets this bag's name.
at line line 55
setName($name)
at line line 63
initialize(array $flashes)
Initializes the Bag.
at line line 77
add(string $type, string $message)
Adds a flash message for type.
at line line 85
array
peek(string $type, array $default = array())
Gets flash messages for a given type.
at line line 93
array
peekAll()
Gets all flash messages.
at line line 101
array
get(string $type, array $default = array())
Gets and clears flash from the stack.
at line line 120
array
all()
Gets and clears flashes from the stack.
at line line 131
setAll(array $messages)
Sets all flash messages.
at line line 139
set(string $type, $messages)
Registers a message for a given type.
at line line 147
bool
has(string $type)
Has flash messages for a given type?
at line line 155
array
keys()
Returns a list of all defined types.
at line line 163
string
getStorageKey()
Gets the storage key for this bag.
at line line 171
mixed
clear()
Clears out data from bag.