PHP Класс Nette\Http\SessionSection

Наследование: extends Nette\Object, implements IteratorAggregate, implements ArrayAccess
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$warnOnUndefined boolean

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
start ( ) Do not call directly. Use Session::getNamespace().

Описание методов

__construct() публичный метод

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

__get() публичный метод

Gets a variable from this session section.
public __get ( $name ) : mixed
Результат mixed

__isset() публичный метод

Determines whether a variable in this session section is set.
public __isset ( $name ) : boolean
Результат boolean

__set() публичный метод

Sets a variable in this session section.
public __set ( $name, $value ) : void
Результат void

__unset() публичный метод

Unsets a variable in this session section.
public __unset ( $name ) : void
Результат void

getIterator() публичный метод

Returns an iterator over all section variables.
public getIterator ( ) : ArrayIterator
Результат ArrayIterator

offsetExists() публичный метод

Determines whether a variable in this session section is set.
public offsetExists ( $name ) : boolean
Результат boolean

offsetGet() публичный метод

Gets a variable from this session section.
public offsetGet ( $name ) : mixed
Результат mixed

offsetSet() публичный метод

Sets a variable in this session section.
public offsetSet ( $name, $value ) : void
Результат void

offsetUnset() публичный метод

Unsets a variable in this session section.
public offsetUnset ( $name ) : void
Результат void

remove() публичный метод

Cancels the current session section.
public remove ( ) : void
Результат void

removeExpiration() публичный метод

Removes the expiration from the section or specific variables.
public removeExpiration ( $variables = NULL ) : void
Результат void

setExpiration() публичный метод

Sets the expiration of the section or specific variables.
public setExpiration ( $time, $variables = NULL ) : self
Результат self

Описание свойств

$warnOnUndefined публичное свойство

public bool $warnOnUndefined
Результат boolean