Skip to content

FlashAware

  • Full name: \Qubus\Http\Session\FlashAware

Methods

info

Add an info message

public info(string $message, string|null $redirectUrl = null, bool $sticky = false): object

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

public success(string $message, string|null $redirectUrl = null, bool $sticky = false): object

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

public warning(string $message, string|null $redirectUrl = null, bool $sticky = false): object

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

public error(string $message, string|null $redirectUrl = null, bool $sticky = false): object

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