Spec-Zone.ru › Laravel 4.2

DatabaseSessionHandler

class DatabaseSessionHandler implements SessionHandlerInterface, ExistenceAwareInterface (View source)

Свойства

protected Connection $connection Экземпляр подключения к базе данных.
protected string $table Имя таблицы сессий.
protected bool $exists Состояние существования сессии.

Методы

void __construct(Connection $connection, string $table)

Создать новый обработчик сессий базы данных.

open($savePath, $sessionName)

{@inheritDoc}

close()

{@inheritDoc}

read($sessionId)

{@inheritDoc}

write($sessionId, $data)

{@inheritDoc}

destroy($sessionId)

{@inheritDoc}

gc($lifetime)

{@inheritDoc}

Builder getQuery()

Получить свежий экземпляр билдера запросов для таблицы.

SessionHandlerInterface setExists(bool $value)

Установить состояние существования сессии.

Подробное описание

void __construct(Connection $connection, string $table)

Создать новый обработчик сессий базы данных.

Параметры

Connection $connection
string $table

Возвращаемое значение

void

open($savePath, $sessionName)

{@inheritDoc}

Параметры

$savePath
$sessionName

close()

{@inheritDoc}

read($sessionId)

{@inheritDoc}

Параметры

$sessionId

write($sessionId, $data)

{@inheritDoc}

Параметры

$sessionId
$data

destroy($sessionId)

{@inheritDoc}

Параметры

$sessionId

gc($lifetime)

{@inheritDoc}

Параметры

$lifetime

protected Builder getQuery()

Получить свежий экземпляр билдера запросов для таблицы.

Возвращаемое значение

Builder

SessionHandlerInterface setExists(bool $value)

Установить состояние существования сессии.

Параметры

bool $value

Возвращаемое значение

SessionHandlerInterface

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Session/DatabaseSessionHandler.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API