class SessionSection implements IteratorAggregate, ArrayAccess

Session section.

Properties

bool $warnOnUndefined

Methods

__construct(Session $session, $name)

Do not call directly. Use Session::getSection().

getIterator()

Returns an iterator over all section variables.

void
__set($name, $value)

Sets a variable in this session section.

mixed
__get($name)

Gets a variable from this session section.

bool
__isset($name)

Determines whether a variable in this session section is set.

void
__unset($name)

Unsets a variable in this session section.

void
offsetSet($name, $value)

Sets a variable in this session section.

mixed
offsetGet($name)

Gets a variable from this session section.

bool
offsetExists($name)

Determines whether a variable in this session section is set.

void
offsetUnset($name)

Unsets a variable in this session section.

setExpiration($time, $variables = null)

Sets the expiration of the section or specific variables.

void
removeExpiration($variables = null)

Removes the expiration from the section or specific variables.

void
remove()

Cancels the current session section.

Details

at line 39
__construct(Session $session, $name)

Do not call directly. Use Session::getSection().

Parameters

Session $session
$name

at line 64
Iterator getIterator()

Returns an iterator over all section variables.

Return Value

Iterator

at line 81
void __set($name, $value)

Sets a variable in this session section.

Parameters

$name
$value

Return Value

void

at line 93
mixed __get($name)

Gets a variable from this session section.

Parameters

$name

Return Value

mixed

at line 109
bool __isset($name)

Determines whether a variable in this session section is set.

Parameters

$name

Return Value

bool

at line 123
void __unset($name)

Unsets a variable in this session section.

Parameters

$name

Return Value

void

at line 136
void offsetSet($name, $value)

Sets a variable in this session section.

Parameters

$name
$value

Return Value

void

at line 147
mixed offsetGet($name)

Gets a variable from this session section.

Parameters

$name

Return Value

mixed

at line 158
bool offsetExists($name)

Determines whether a variable in this session section is set.

Parameters

$name

Return Value

bool

at line 169
void offsetUnset($name)

Unsets a variable in this session section.

Parameters

$name

Return Value

void

at line 181
SessionSection setExpiration($time, $variables = null)

Sets the expiration of the section or specific variables.

Parameters

$time
$variables

Return Value

SessionSection

at line 204
void removeExpiration($variables = null)

Removes the expiration from the section or specific variables.

Parameters

$variables

Return Value

void

at line 217
void remove()

Cancels the current session section.

Return Value

void

Traits

SmartObject