PHP Class Nette\Http\SessionSection

Inheritance: extends Nette\Object, implements IteratorAggregate, implements ArrayAccess
Afficher le fichier Open project: nette/http Class Usage Examples

Méthodes publiques

Свойство Type Description
$warnOnUndefined boolean

Méthodes publiques

Méthode 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

Méthode Description
start ( ) Do not call directly. Use Session::getNamespace().

Method Details

__construct() public méthode

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

__get() public méthode

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

__isset() public méthode

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

__set() public méthode

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

__unset() public méthode

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

getIterator() public méthode

Returns an iterator over all section variables.
public getIterator ( ) : ArrayIterator
Résultat ArrayIterator

offsetExists() public méthode

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

offsetGet() public méthode

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

offsetSet() public méthode

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

offsetUnset() public méthode

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

remove() public méthode

Cancels the current session section.
public remove ( ) : void
Résultat void

removeExpiration() public méthode

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

setExpiration() public méthode

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

Property Details

$warnOnUndefined public_oe property

public bool $warnOnUndefined
Résultat boolean