class SessionHelper extends Helper

SessionHelper provides read-only access to the session attributes.

Properties

protected $charset from Helper
protected $session
protected $requestStack

Methods

setCharset(string $charset)

Sets the default charset.

from Helper
string
getCharset()

Gets the default charset.

from Helper
__construct(RequestStack $requestStack)

No description

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

Returns an attribute.

getFlash($name, array $default = array())

No description

getFlashes()

No description

hasFlash($name)

No description

string
getName()

Returns the canonical name of this helper.

Details

setCharset(string $charset)

Sets the default charset.

Parameters

string $charset The charset

string getCharset()

Gets the default charset.

Return Value

string The default charset

__construct(RequestStack $requestStack)

Parameters

RequestStack $requestStack

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

Returns an attribute.

Parameters

string $name The attribute name
mixed $default The default value

Return Value

mixed

getFlash($name, array $default = array())

Parameters

$name
array $default

getFlashes()

hasFlash($name)

Parameters

$name

string getName()

Returns the canonical name of this helper.

Return Value

string The canonical name