Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Context
  • FileUpload
  • Request
  • RequestFactory
  • Response
  • Session
  • SessionSection
  • Url
  • UrlScript
  • UserStorage

Interfaces

  • IRequest
  • IResponse
  • ISessionStorage
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class SessionSection

Session section.

Nette\Object
Extended by Nette\Http\SessionSection implements IteratorAggregate, ArrayAccess
Namespace: Nette\Http
Author: David Grudl
Located at Http/SessionSection.php
Methods summary
public
# __construct( Nette\Http\Session $session, $name )

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

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

public ArrayIterator
# getIterator( )

Returns an iterator over all section variables.

Returns an iterator over all section variables.

Returns

ArrayIterator

Implementation of

IteratorAggregate::getIterator()
public
# __set( string $name, mixed $value )

Sets a variable in this session section.

Sets a variable in this session section.

Parameters

$name
string
name
$value
mixed
value

Throws

MemberAccessException
if the property is not defined or is read-only

Overrides

Nette\Object::__set()
public mixed &
# __get( string $name )

Gets a variable from this session section.

Gets a variable from this session section.

Parameters

$name
string
name

Returns

mixed

Throws

MemberAccessException
if the property is not defined.

Overrides

Nette\Object::__get()
public boolean
# __isset( string $name )

Determines whether a variable in this session section is set.

Determines whether a variable in this session section is set.

Parameters

$name
string
name

Returns

boolean

Overrides

Nette\Object::__isset()
public
# __unset( string $name )

Unsets a variable in this session section.

Unsets a variable in this session section.

Parameters

$name
string
name

Throws

MemberAccessException

Overrides

Nette\Object::__unset()
public
# offsetSet( string $name, mixed $value )

Sets a variable in this session section.

Sets a variable in this session section.

Parameters

$name
string
name
$value
mixed
value

Implementation of

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

Gets a variable from this session section.

Gets a variable from this session section.

Parameters

$name
string
name

Returns

mixed

Implementation of

ArrayAccess::offsetGet()
public boolean
# offsetExists( string $name )

Determines whether a variable in this session section is set.

Determines whether a variable in this session section is set.

Parameters

$name
string
name

Returns

boolean

Implementation of

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

Unsets a variable in this session section.

Unsets a variable in this session section.

Parameters

$name
string
name

Implementation of

ArrayAccess::offsetUnset()
public Nette\Http\SessionSection
# setExpiration( string|integer|DateTime $time, mixed $variables = NULL )

Sets the expiration of the section or specific variables.

Sets the expiration of the section 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

Nette\Http\SessionSection
public
# removeExpiration( mixed $variables = NULL )

Removes the expiration from the section or specific variables.

Removes the expiration from the section or specific variables.

Parameters

$variables
mixed
optional list of variables / single variable to expire
public
# remove( )

Cancels the current session section.

Cancels the current session section.

Methods inherited from Nette\Object
__call(), __callStatic(), extensionMethod(), getReflection()
Properties summary
public boolean $warnOnUndefined FALSE
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.0 API documentation generated by ApiGen 2.8.0