FlashAware
- Full name:
\Qubus\Http\Session\FlashAware
Methods
info
Add an info message
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | The message text |
$redirectUrl | string|null | Where to redirect once the message is added |
$sticky | bool | Sticky the message (hides the close button) |
success
Add a success message
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | The message text |
$redirectUrl | string|null | Where to redirect once the message is added |
$sticky | bool | Sticky the message (hides the close button) |
warning
Add a warning message
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | The message text |
$redirectUrl | string|null | Where to redirect once the message is added |
$sticky | bool | Sticky the message (hides the close button) |
error
Add an error message
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | The message text |
$redirectUrl | string|null | Where to redirect once the message is added |
$sticky | bool | Sticky the message (hides the close button) |
sticky
Add a sticky message
public sticky(string $message, string|null $redirectUrl = null, string $type = MessageType::DEFAULT): object
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | The message text |
$redirectUrl | string|null | Where to redirect once the message is added |
$type | string | The $msgType |
add
Add a flash message to the session data
public add(string $message, string $type = MessageType::DEFAULT, string|null $redirectUrl = null, bool $sticky = false): object|bool
Parameters:
Parameter | Type | Description |
---|---|---|
$message | string | The message text |
$type | string | The $msgType |
$redirectUrl | string|null | Where to redirect once the message is added |
$sticky | bool | Whether the message is stickied |
Automatically generated on 2025-10-13