Methods summary
public static
string
|
#
set( string $message = null, string $messageType = null )
Sets a flash message with a message type.
Sets a flash message with a message type.
Parameters
- $message
- The message to display
- $messageType
- The type of message: success|info|warning|danger
Returns
string The data: [message => $message, type => $type]
|
public static
|
#
get( )
Alias for Flash::flush(): Syntactic sugar to retrieve and delete the message
Alias for Flash::flush(): Syntactic sugar to retrieve and delete the message
See
\Core\Flash::flush()
Alias
Flash::flush()
|
public static
array|boolean
|
#
flush( )
Gets the value of the flash flash message and the flash message type.
Gets the value of the flash flash message and the flash message type.
Returns
array|boolean The whole data if there's a flash message, FALSE otherwise. Flushes de data afterwards.
|
public static
boolean
|
#
hasMessage( )
Returns whether there's a flash message or not TRUE|FALSE
Returns whether there's a flash message or not TRUE|FALSE
Returns
boolean
|
public static
string
|
#
message( boolean|false $flush = false )
Parameters
- $flush
- Whether to flush the data or not.
Returns
string The message.
|
public static
string
|
#
type( boolean|false $flush = false )
Parameters
- $flush
- Whether to flush the data or not.
Returns
string The type of message.
|