SessionSection
class SessionSection extends Object implements IteratorAggregate, ArrayAccess
Session section.
Properties
bool | $warnOnUndefined |
Methods
Returns an iterator over all section variables.
Sets a variable in this session section.
Gets a variable from this session section.
Determines whether a variable in this session section is set.
Unsets a variable in this session section.
Sets a variable in this session section.
Gets a variable from this session section.
Determines whether a variable in this session section is set.
Unsets a variable in this session section.
Sets the expiration of the section or specific variables.
Removes the expiration from the section or specific variables.
Cancels the current session section.
Details
at line 37
__construct(Session $session, $name)
Do not call directly. Use Session::getSection().
at line 65
ArrayIterator
getIterator()
Returns an iterator over all section variables.
at line 82
void
__set($name, $value)
Sets a variable in this session section.
at line 94
mixed
__get($name)
Gets a variable from this session section.
at line 110
bool
__isset($name)
Determines whether a variable in this session section is set.
at line 124
void
__unset($name)
Unsets a variable in this session section.
at line 137
void
offsetSet($name, $value)
Sets a variable in this session section.
at line 148
mixed
offsetGet($name)
Gets a variable from this session section.
at line 159
bool
offsetExists($name)
Determines whether a variable in this session section is set.
at line 170
void
offsetUnset($name)
Unsets a variable in this session section.
at line 182
SessionSection
setExpiration($time, $variables = NULL)
Sets the expiration of the section or specific variables.
at line 210
void
removeExpiration($variables = NULL)
Removes the expiration from the section or specific variables.
at line 223
void
remove()
Cancels the current session section.