Bag for Session Flash messages Ubiquity\utils\flash$FlashBag This class is part of Ubiquity.
More...
Bag for Session Flash messages Ubiquity\utils\flash$FlashBag This class is part of Ubiquity.
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.0.2
Definition at line 19 of file FlashBag.php.
◆ __construct()
__construct |
( |
bool |
$autoClear = true | ) |
|
◆ addMessage()
addMessage |
( |
string |
$content, |
|
|
string |
$title = NULL , |
|
|
string |
$type = 'info' , |
|
|
string |
$icon = null |
|
) |
| |
Adds a temporary new message to the bag.
- Parameters
-
string | $content | |
string | null | $title | |
string | $type | |
string | null | $icon | |
Definition at line 46 of file FlashBag.php.
◆ addMessageAndSave()
addMessageAndSave |
( |
string |
$content, |
|
|
string |
$title = NULL , |
|
|
string |
$type = 'info' , |
|
|
string |
$icon = null |
|
) |
| |
Adds and saves a message in the bag.
- Parameters
-
string | $content | |
string | null | $title | |
string | $type | |
string | null | $icon | |
Definition at line 57 of file FlashBag.php.
◆ clear()
◆ current()
◆ getAll()
Returns all the messages.
- Returns
- array
Definition at line 81 of file FlashBag.php.
◆ getMessages()
getMessages |
( |
string |
$type | ) |
|
Returns all the message of a type in the bag.
- Parameters
-
- Returns
- FlashMessage[]
Definition at line 67 of file FlashBag.php.
◆ isAutoClear()
◆ key()
◆ next()
◆ rewind()
◆ save()
◆ setAutoClear()
setAutoClear |
( |
bool |
$autoClear | ) |
|
◆ valid()
◆ $array
◆ $autoClear
◆ $position
◆ FLASH_BAG_KEY
const FLASH_BAG_KEY = '_flash_bag' |
◆ VAR_VIEW_NAME
const VAR_VIEW_NAME ='flashMessages' |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/utils/flash/FlashBag.php