Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NFtp
  • NHtml
  • NHttpContext
  • NHttpRequest
  • NHttpResponse
  • NHttpUploadedFile
  • NSession
  • NSessionNamespace
  • NUri
  • NUriScript
  • NUser

Interfaces

  • IHttpRequest
  • IHttpResponse
  • IUser

Exceptions

  • NFtpException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Class NSessionNamespace

Session namespace for Session.

NObject
Extended by NSessionNamespace implements IteratorAggregate, ArrayAccess
Final
Package: Nette\Web
Author: David Grudl
Located at Web/SessionNamespace.php
Methods summary
public
# __construct( & $data, & $meta )

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

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

public ArrayIterator
# getIterator( )

Returns an iterator over all namespace variables.

Returns an iterator over all namespace variables.

Returns

ArrayIterator

Implementation of

IteratorAggregate::getIterator
public
# __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

Throws

MemberAccessException
if the property is not defined or is read-only
public mixed &
# __get( string $name )

Gets a variable from this session namespace.

Gets a variable from this session namespace.

Parameters

$name
string
name

Returns

mixed

Throws

MemberAccessException
if the property is not defined.
public boolean
# __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

Returns

boolean
public
# __unset( string $name )

Unsets a variable in this session namespace.

Unsets a variable in this session namespace.

Parameters

$name
string
name

Throws

MemberAccessException
public
# 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
value

Implementation of

ArrayAccess::offsetSet
public mixed
# offsetGet( string $name )

Gets a variable from this session namespace.

Gets a variable from this session namespace.

Parameters

$name
string
name

Returns

mixed

Implementation of

ArrayAccess::offsetGet
public boolean
# 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
name

Returns

boolean

Implementation of

ArrayAccess::offsetExists
public
# offsetUnset( string $name )

Unsets a variable in this session namespace.

Unsets a variable in this session namespace.

Parameters

$name
string
name

Implementation of

ArrayAccess::offsetUnset
public NSessionNamespace
# setExpiration( string|integer|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|integer|DateTime
time, value 0 means "until the browser is closed"
$variables
mixed
optional list of variables / single variable to expire

Returns

NSessionNamespace
provides a fluent interface
public
# 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
# remove( )

Cancels the current session namespace.

Cancels the current session namespace.

Methods inherited from NObject
__call(), __callStatic(), extensionMethod(), getReflection()
Properties summary
public boolean $warnOnUndefined FALSE
#
Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0