PHP Класс Cartalyst\Sentinel\Sessions\NativeSession

Наследование: implements Cartalyst\Sentinel\Sessions\SessionInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$key string The session key.

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

Метод Описание
__construct ( string $key = null ) : void Creates a new native session driver for Sentinel.
__destruct ( ) : void Called upon destruction of the native session handler.
forget ( ) {@inheritDoc}
get ( ) {@inheritDoc}
put ( $value ) {@inheritDoc}

Защищенные методы

Метод Описание
forgetSession ( ) : void Forgets the Sentinel session from the global $_SESSION.
getSession ( ) : mixed. Unserializes a value from the session and returns it.
setSession ( mixed $value ) : void Interacts with the $_SESSION global to set a property on it.
startSession ( ) : void Starts the session if it does not exist.
writeSession ( ) : void Writes the session.

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

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

Creates a new native session driver for Sentinel.
public __construct ( string $key = null ) : void
$key string
Результат void

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

Called upon destruction of the native session handler.
public __destruct ( ) : void
Результат void

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

{@inheritDoc}
public forget ( )

forgetSession() защищенный метод

Forgets the Sentinel session from the global $_SESSION.
protected forgetSession ( ) : void
Результат void

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

{@inheritDoc}
public get ( )

getSession() защищенный метод

Unserializes a value from the session and returns it.
protected getSession ( ) : mixed.
Результат mixed.

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

{@inheritDoc}
public put ( $value )

setSession() защищенный метод

The property is serialized initially.
protected setSession ( mixed $value ) : void
$value mixed
Результат void

startSession() защищенный метод

Starts the session if it does not exist.
protected startSession ( ) : void
Результат void

writeSession() защищенный метод

Writes the session.
protected writeSession ( ) : void
Результат void

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

$key защищенное свойство

The session key.
protected string $key
Результат string