Class SessionNamespace
Session namespace for Session.
- Object
-
SessionNamespace implements IteratorAggregate, Traversable, ArrayAccess
public
|
#
__construct(
& $data,
& $meta
)
Do not call directly. Use Session::getNamespace(). Do not call directly. Use Session::getNamespace(). |
public
ArrayIterator
|
#
getIterator(
)
Returns an iterator over all namespace variables. |
public
void
|
#
__set(
string
$name,
mixed
$value
)
Sets a variable in this session namespace. Sets a variable in this session namespace. Parameters$name string name$value mixed value |
public
mixed
&
|
#
__get(
string
$name
)
Gets a variable from this session namespace. Gets a variable from this session namespace. Parameters$name string name |
public
bool
|
#
__isset(
string
$name
)
Determines whether a variable in this session namespace is set. Determines whether a variable in this session namespace is set. Parameters$name string name |
public
void
|
#
__unset(
string
$name
)
Unsets a variable in this session namespace. Unsets a variable in this session namespace. Parameters$name string name |
public
void
|
#
offsetSet(
string
$name,
mixed
$value
)
Sets a variable in this session namespace. Sets a variable in this session namespace. Parameters$name string name$value mixed valueImplementation of |
public
mixed
|
#
offsetGet(
string
$name
)
Gets a variable from this session namespace. Gets a variable from this session namespace. Parameters$name string nameImplementation of |
public
bool
|
#
offsetExists(
string
$name
)
Determines whether a variable in this session namespace is set. Determines whether a variable in this session namespace is set. Parameters$name string nameImplementation of |
public
void
|
#
offsetUnset(
string
$name
)
Unsets a variable in this session namespace. Unsets a variable in this session namespace. Parameters$name string nameImplementation of |
public
SessionNamespace
|
#
setExpiration(
string|int|DateTime
$time,
mixed
$variables = NULL
)
Sets the expiration of the namespace or specific variables. Sets the expiration of the namespace or specific variables. Parameters$time string|int|DateTime time, value 0 means "until the browser is closed"$variables mixed optional list of variables / single variable to expireReturnsSessionNamespace provides a fluent interface
|
public
void
|
#
removeExpiration(
mixed
$variables = NULL
)
Removes the expiration from the namespace or specific variables. Removes the expiration from the namespace or specific variables. Parameters$variables mixed optional list of variables / single variable to expire |
public
void
|
#
remove(
)
Cancels the current session namespace. Cancels the current session namespace. |
Methods Inherited From Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
bool
|
$warnOnUndefined | false |
# |