Class SessionNamespace (namespace Nette\Web)
Session namespace for Session.
Object | --SessionNamespace
Implements interfaces:
| Public Method Summary | |
|---|---|
| SessionNamespace |
__construct
(&$data, &$meta)
Do not call directly. Use Session::getNamespace().
|
| ArrayIterator |
getIterator
()
Returns an iterator over all namespace variables.
|
| bool |
offsetExists
(string $name)
Determines whether a variable in this session namespace is set.
|
| mixed |
offsetGet
(string $name)
Gets a variable from this session namespace.
|
| void |
offsetSet
(string $name, mixed $value)
Sets a variable in this session namespace.
|
| void |
offsetUnset
(string $name)
Unsets a variable in this session namespace.
|
| 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.
|
| Methods Inherited From Object |
|---|
| extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
| Variable Summary | ||||
|---|---|---|---|---|
| bool | $warnOnUndefined | FALSE |
line 43 |
|
| Method Details | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 50 __constructpublic SessionNamespace __construct (&$data, &$meta) Do not call directly. Use Session::getNamespace().
|
|||||||||||||||
|
line 62 getIteratorpublic ArrayIterator getIterator () Returns an iterator over all namespace variables. Implementation of:
IteratorAggregate::getIterator
|
|||||||||||||||
|
line 163 offsetExistspublic bool offsetExists (string $name) Determines whether a variable in this session namespace is set. Implementation of:
ArrayAccess::offsetExists
|
|||||||||||||||
|
line 150 offsetGetpublic mixed offsetGet (string $name) Gets a variable from this session namespace. Implementation of:
ArrayAccess::offsetGet
|
|||||||||||||||
|
line 137 offsetSetpublic void offsetSet (string $name, mixed $value) Sets a variable in this session namespace. Implementation of:
ArrayAccess::offsetSet
|
|||||||||||||||
|
line 176 offsetUnsetpublic void offsetUnset (string $name) Unsets a variable in this session namespace. Implementation of:
ArrayAccess::offsetUnset
|
|||||||||||||||
|
line 242 removepublic void remove () Cancels the current session namespace.
|
|||||||||||||||
|
line 220 removeExpirationpublic void removeExpiration ([mixed $variables = Removes the expiration from the namespace or specific variables.
|
|||||||||||||||
|
line 189 setExpirationpublic void setExpiration (int $seconds, [mixed $variables = Sets the expiration of the namespace or specific variables.
|
|||||||||||||||
|
line 93 __getpublic mixed & __get (string $name) Gets a variable from this session namespace.
|
|||||||||||||||
|
line 110 __issetpublic bool __isset (string $name) Determines whether a variable in this session namespace is set.
|
|||||||||||||||
|
line 80 __setpublic void __set (string $name, mixed $value) Sets a variable in this session namespace.
|
|||||||||||||||
|
line 123 __unsetpublic void __unset (string $name) Unsets a variable in this session namespace.
|
|||||||||||||||
