class FlashBag extends SessionBag implements FlashBagInterface (View source)

Class FlashBag

Methods

void
setData(array $data)

setData

mixed
get(string $key, mixed $default)

get

set(string $key, mixed $value)

set

bool
has(string $name)

has

array
all()

all

$this
add(string $msg, string $type = 'info')

add

array
takeAll()

Take all and clean.

array
getType(string $type)

getType

Details

in SessionBag at line line 32
void setData(array $data)

setData

Parameters

array $data

Return Value

void

in SessionBag at line line 45
mixed get(string $key, mixed $default)

get

Parameters

string $key
mixed $default

Return Value

mixed

in SessionBag at line line 58
SessionBagInterface set(string $key, mixed $value)

set

Parameters

string $key
mixed $value

Return Value

SessionBagInterface

in SessionBag at line line 82
bool has(string $name)

has

Parameters

string $name

Return Value

bool

in SessionBag at line line 92
array all()

all

Return Value

array

in SessionBag at line line 102
SessionBagInterface clear()

clean

Return Value

SessionBagInterface

at line line 26
$this add(string $msg, string $type = 'info')

add

Parameters

string $msg
string $type

Return Value

$this

at line line 46
array takeAll()

Take all and clean.

Return Value

array

at line line 62
array getType(string $type)

getType

Parameters

string $type

Return Value

array