Class SessionNamespace (namespace Nette\Web)
Session namespace for Session.
Object | --SessionNamespace
Implements interfaces:
| Constructor Summary | |
|---|---|
| public |
__construct
(&$data, &$meta)
Do not call directly. Use Session::getNamespace().
|
| Method Summary | |
|---|---|
| ArrayIterator |
getIterator
()
Returns an iterator over all namespace variables.
|
| void |
remove
()
Cancels the current session namespace.
|
| void |
removeExpiration
([mixed $variables =
NULL])
Removes the expiration from the namespace or specific variables.
|
| void |
setExpiration
(int $seconds, [mixed $variables =
NULL])
Sets the expiration of the namespace or specific variables.
|
| & mixed |
__get
(string $name)
Gets a variable from this session namespace.
|
| bool |
__isset
(string $name)
Determines whether a variable in this session namespace is set.
|
| void |
__set
(string $name, mixed $value)
Sets a variable in this session namespace.
|
| void |
__unset
(string $name)
Unsets a variable in this session namespace.
|
| Variable Summary | ||||
|---|---|---|---|---|
| bool | $warnOnUndefined | FALSE |
line 45 |
|
| Constructor Details | |||||||||
|---|---|---|---|---|---|---|---|---|---|
|
line 52 __constructpublic __construct (&$data, &$meta) Do not call directly. Use Session::getNamespace().
|
|||||||||
| Method Details | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 64 getIteratorpublic ArrayIterator getIterator () Returns an iterator over all namespace variables. Implementation of:
IteratorAggregate::getIterator
|
|||||||||||||||
|
line 193 removepublic void remove () Cancels the current session namespace.
|
|||||||||||||||
|
line 171 removeExpirationpublic void removeExpiration ([mixed $variables = Removes the expiration from the namespace or specific variables.
|
|||||||||||||||
|
line 138 setExpirationpublic void setExpiration (int $seconds, [mixed $variables = Sets the expiration of the namespace or specific variables.
|
|||||||||||||||
|
line 95 __getpublic mixed & __get (string $name) Gets a variable from this session namespace.
|
|||||||||||||||
|
line 112 __issetpublic bool __isset (string $name) Determines whether a variable in this session namespace is set.
|
|||||||||||||||
|
line 82 __setpublic void __set (string $name, mixed $value) Sets a variable in this session namespace.
|
|||||||||||||||
|
line 125 __unsetpublic void __unset (string $name) Unsets a variable in this session namespace.
|
|||||||||||||||