class AutoExpireFlashBag implements FlashBagInterface
AutoExpireFlashBag flash message container.
__construct(string $storageKey = '_sf2_flashes') Constructor. | ||
string | getName() Gets this bag's name. | |
setName($name) | ||
initialize(array $flashes) Initializes the Bag. | ||
add(string $type, string $message) Adds a flash message for type. | ||
array | peek(string $type, array $default = array()) Gets flash messages for a given type. | |
array | peekAll() Gets all flash messages. | |
array | get(string $type, array $default = array()) Gets and clears flash from the stack. | |
array | all() Gets and clears flashes from the stack. | |
setAll(array $messages) Sets all flash messages. | ||
set(string $type, $messages) Registers a message for a given type. | ||
bool | has(string $type) Has flash messages for a given type? | |
array | keys() Returns a list of all defined types. | |
string | getStorageKey() Gets the storage key for this bag. | |
mixed | clear() Clears out data from bag. |
Constructor.
Gets this bag's name.
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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpFoundation/Session/Flash/AutoExpireFlashBag.html