PHP Класс Pop\Web\Session

Автор: Nick Sagona, III ([email protected])
Наследование: implements ArrayAccess
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__get ( string $name ) : mixed Get method to return the value of the $_SESSION global variable.
__isset ( string $name ) : boolean Return the isset value of the $_SESSION global variable.
__set ( string $name, mixed $value ) : void Set a property in the session object that is linked to the $_SESSION global variable.
__unset ( string $name ) : void Unset the $_SESSION global variable.
getId ( ) : string Return the current the session id.
getInstance ( ) : Session Determine whether or not an instance of the session object exists already, and instantiate the object if it does not exist.
kill ( ) : void Destroy the session.
regenerateId ( ) : void Regenerate the session id.

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

Метод Описание
__construct ( ) : Session Constructor

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

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

Get method to return the value of the $_SESSION global variable.
public __get ( string $name ) : mixed
$name string
Результат mixed

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

Return the isset value of the $_SESSION global variable.
public __isset ( string $name ) : boolean
$name string
Результат boolean

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

Set a property in the session object that is linked to the $_SESSION global variable.
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
Результат void

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

Unset the $_SESSION global variable.
public __unset ( string $name ) : void
$name string
Результат void

getId() публичный Метод

Return the current the session id.
public getId ( ) : string
Результат string

getInstance() публичный статический Метод

Determine whether or not an instance of the session object exists already, and instantiate the object if it does not exist.
public static getInstance ( ) : Session
Результат Session

kill() публичный Метод

Destroy the session.
public kill ( ) : void
Результат void

regenerateId() публичный Метод

Regenerate the session id.
public regenerateId ( ) : void
Результат void