PHP Класс Horde_SessionHandler_Storage, horde

Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$readonly boolean Access session read-only?

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

Свойство Тип Описание
$_params array Hash containing connection parameters.

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

Метод Описание
__construct ( array $params = [] ) Constructor.
__sleep ( ) Storage objects do not support serialization.
close ( ) Close the backend.
destroy ( string $id ) : boolean Destroy the data for a particular session identifier in the backend.
gc ( integer $maxlifetime = 300 ) : boolean Garbage collect stale sessions from the backend.
getSessionIDs ( ) : array Get a list of the valid session identifiers.
open ( string $save_path = null, string $session_name = null ) Open the backend.
read ( string $id ) : string Read the data for a particular session identifier from the backend.
setLogger ( Horde_Log_Logger $log ) Set the logger object.
write ( string $id, string $session_data ) : boolean Write session data to the backend.

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

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

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters.

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

Storage objects do not support serialization.
public __sleep ( )

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

Close the backend.
abstract public close ( )

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

This method should only be called internally by PHP via session_set_save_handler().
abstract public destroy ( string $id ) : boolean
$id string The session identifier.
Результат boolean True on success, false otherwise.

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

This method should only be called internally by PHP via session_set_save_handler().
abstract public gc ( integer $maxlifetime = 300 ) : boolean
$maxlifetime integer The maximum age of a session.
Результат boolean True on success, false otherwise.

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

Get a list of the valid session identifiers.
abstract public getSessionIDs ( ) : array
Результат array A list of valid session identifiers.

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

Open the backend.
abstract public open ( string $save_path = null, string $session_name = null )
$save_path string The path to the session object.
$session_name string The name of the session.

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

Read the data for a particular session identifier from the backend.
abstract public read ( string $id ) : string
$id string The session identifier.
Результат string The session data.

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

Set the logger object.
Устаревший:
public setLogger ( Horde_Log_Logger $log )
$log Horde_Log_Logger

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

Write session data to the backend.
abstract public write ( string $id, string $session_data ) : boolean
$id string The session identifier.
$session_data string The session data.
Результат boolean True on success, false otherwise.

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

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

Hash containing connection parameters.
protected array $_params
Результат array

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

Access session read-only?
public bool $readonly
Результат boolean