Spec-Zone.ru › Laravel 5.2

DatabaseSessionHandler

class DatabaseSessionHandler implements SessionHandlerInterface, ExistenceAwareInterface (View source)

Свойства

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

Методы

void __construct(ConnectionInterface $connection, string $table, string $minutes, Container $container = null)

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

open($savePath, $sessionName)

{@inheritdoc}

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

write($sessionId, $data)

{@inheritdoc}

array getDefaultPayload(string $data)

Получить стандартную нагрузку для сессии.

destroy($sessionId)

{@inheritdoc}

gc($lifetime)

{@inheritdoc}

Builder getQuery()

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

SessionHandlerInterface setExists(bool $value)

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

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

void __construct(ConnectionInterface $connection, string $table, string $minutes, Container $container = null)

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

Параметры

ConnectionInterface $connection
string $table
string $minutes
Container $container

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

void

open($savePath, $sessionName)

{@inheritdoc}

Параметры

$savePath
$sessionName

close()

{@inheritdoc}

read($sessionId)

{@inheritdoc}

Параметры

$sessionId

write($sessionId, $data)

{@inheritdoc}

Параметры

$sessionId
$data

protected array getDefaultPayload(string $data)

Получить стандартную нагрузку для сессии.

Параметры

string $data

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

array

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/5.2/Illuminate/Session/DatabaseSessionHandler.html

Spec-Zone.ru

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