interface OldInputBagInterface implements SessionBagInterface

Methods

set($name, $value)

Registers an input value

array
peek($name, null $default = null)

Get input value for a given field

array
peekAll()

Gets all input values

array
get(string $name, null $default = null)

Gets and clears input from the stack.

array
all()

Gets and clears input from the stack.

setAll(array $input)

Sets all input values.

bool
has(string $name)

Has value for a given input name?

array
keys()

Returns a list of all defined types.

Details

at line 24
set($name, $value)

Registers an input value

Parameters

$name
$value

at line 33
array peek($name, null $default = null)

Get input value for a given field

Parameters

$name
null $default

Return Value

array

at line 40
array peekAll()

Gets all input values

Return Value

array

at line 50
array get(string $name, null $default = null)

Gets and clears input from the stack.

Parameters

string $name
null $default Default value if $name does not exist.

Return Value

array

at line 57
array all()

Gets and clears input from the stack.

Return Value

array

at line 64
setAll(array $input)

Sets all input values.

Parameters

array $input

at line 73
bool has(string $name)

Has value for a given input name?

Parameters

string $name

Return Value

bool

at line 80
array keys()

Returns a list of all defined types.

Return Value

array