Class SessionNamespace (namespace Nette\Web)


Session namespace for Session.

Object
   |
   --SessionNamespace

Implements interfaces:

IteratorAggregate (internal interface)
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Web/SessionNamespace.php (line 36)
Constructor Summary
public
__construct (&$data, &$meta)
Do not call directly. Use Session::getNamespace().
Method Summary
ArrayIterator
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.
Methods Inherited From Object
Object::extensionMethod(), Object::getClass(), Object::getReflection(), Object::__call(), Object::__callStatic(), Object::__get(), Object::__isset(), Object::__set(), Object::__unset()
Variable Summary
bool $warnOnUndefined FALSE

line 45


Constructor Details

line 52

__construct

public __construct (&$data, &$meta)

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

Input
&$data
&$meta
Method Details

line 64

getIterator

public ArrayIterator getIterator ()

Returns an iterator over all namespace variables.

Implementation of:

IteratorAggregate::getIterator
Output
ArrayIterator  

line 193

remove

public void remove ()

Cancels the current session namespace.

Output
void  

line 171

removeExpiration

public void removeExpiration ([mixed $variables = NULL])

Removes the expiration from the namespace or specific variables.

Input
mixed $variables optional list of variables / single variable to expire
Output
void  

line 138

setExpiration

public void setExpiration (int $seconds, [mixed $variables = NULL])

Sets the expiration of the namespace or specific variables.

Input
int $seconds time in seconds
mixed $variables optional list of variables / single variable to expire
Output
void  

line 95

__get

public mixed & __get (string $name)

Gets a variable from this session namespace.

Input
string $name name
Output
& mixed  

line 112

__isset

public bool __isset (string $name)

Determines whether a variable in this session namespace is set.

Input
string $name name
Output
bool  

line 82

__set

public void __set (string $name, mixed $value)

Sets a variable in this session namespace.

Input
string $name name
mixed $value value
Output
void  

line 125

__unset

public void __unset (string $name)

Unsets a variable in this session namespace.

Input
string $name name
Output
void