PHP Class Nette\Http\SessionSection

Inheritance: extends Nette\Object, implements IteratorAggregate, implements ArrayAccess
Mostrar archivo Open project: nette/http Class Usage Examples

Public Properties

Property Type Description
$warnOnUndefined boolean

Public Methods

Method Description
__construct ( Session $session, $name ) Do not call directly. Use Session::getSection().
__get ( $name ) : mixed Gets a variable from this session section.
__isset ( $name ) : boolean Determines whether a variable in this session section is set.
__set ( $name, $value ) : void Sets a variable in this session section.
__unset ( $name ) : void Unsets a variable in this session section.
getIterator ( ) : ArrayIterator Returns an iterator over all section variables.
offsetExists ( $name ) : boolean Determines whether a variable in this session section is set.
offsetGet ( $name ) : mixed Gets a variable from this session section.
offsetSet ( $name, $value ) : void Sets a variable in this session section.
offsetUnset ( $name ) : void Unsets a variable in this session section.
remove ( ) : void Cancels the current session section.
removeExpiration ( $variables = NULL ) : void Removes the expiration from the section or specific variables.
setExpiration ( $time, $variables = NULL ) : self Sets the expiration of the section or specific variables.

Private Methods

Method Description
start ( ) Do not call directly. Use Session::getNamespace().

Method Details

__construct() public method

Do not call directly. Use Session::getSection().
public __construct ( Session $session, $name )
$session Session

__get() public method

Gets a variable from this session section.
public __get ( $name ) : mixed
return mixed

__isset() public method

Determines whether a variable in this session section is set.
public __isset ( $name ) : boolean
return boolean

__set() public method

Sets a variable in this session section.
public __set ( $name, $value ) : void
return void

__unset() public method

Unsets a variable in this session section.
public __unset ( $name ) : void
return void

getIterator() public method

Returns an iterator over all section variables.

offsetExists() public method

Determines whether a variable in this session section is set.
public offsetExists ( $name ) : boolean
return boolean

offsetGet() public method

Gets a variable from this session section.
public offsetGet ( $name ) : mixed
return mixed

offsetSet() public method

Sets a variable in this session section.
public offsetSet ( $name, $value ) : void
return void

offsetUnset() public method

Unsets a variable in this session section.
public offsetUnset ( $name ) : void
return void

remove() public method

Cancels the current session section.
public remove ( ) : void
return void

removeExpiration() public method

Removes the expiration from the section or specific variables.
public removeExpiration ( $variables = NULL ) : void
return void

setExpiration() public method

Sets the expiration of the section or specific variables.
public setExpiration ( $time, $variables = NULL ) : self
return self

Property Details

$warnOnUndefined public_oe property

public bool $warnOnUndefined
return boolean