Legend of the Green Dragon

FlashMessages
in package
Uses StaticTrait

Table of Contents

$instance  : mixed
Instance object.
__callStatic()  : mixed
Add support for magic static method calls.
_i()  : mixed
_instance()  : mixed
addErrorMessage()  : FlashMessages
Add a "error" message.
addInfoMessage()  : FlashMessages
Add a "info" message.
addMessage()  : void
Add message.
addSuccessMessage()  : FlashMessages
Add a "success" message.
addWarningMessage()  : FlashMessages
Add a "warning" message.
instance()  : mixed
Set/get a instance of object.

Properties

$instance

Instance object.

protected static mixed $instance

Methods

__callStatic()

Add support for magic static method calls.

public static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
$method : mixed
$arguments : array<string|int, mixed>
Return values
mixed

the returned value from the resolved method

_i()

public static _i() : mixed
Return values
mixed

_instance()

public static _instance() : mixed
Return values
mixed

addErrorMessage()

Add a "error" message.

public static addErrorMessage(array<string|int, mixed>|string $message) : FlashMessages
Parameters
$message : array<string|int, mixed>|string
Return values
FlashMessages

addInfoMessage()

Add a "info" message.

public static addInfoMessage(array<string|int, mixed>|string $message) : FlashMessages
Parameters
$message : array<string|int, mixed>|string
Return values
FlashMessages

addMessage()

Add message.

public static addMessage(array<string|int, mixed>|string $message[, string $type = null ]) : void
Parameters
$message : array<string|int, mixed>|string
$type : string = null
Return values
void

addSuccessMessage()

Add a "success" message.

public static addSuccessMessage(array<string|int, mixed>|string $message) : FlashMessages
Parameters
$message : array<string|int, mixed>|string
Return values
FlashMessages

addWarningMessage()

Add a "warning" message.

public static addWarningMessage(array<string|int, mixed>|string $message) : FlashMessages
Parameters
$message : array<string|int, mixed>|string
Return values
FlashMessages

instance()

Set/get a instance of object.

public static instance(mixed $instance) : mixed
Parameters
$instance : mixed
Return values
mixed

Search results