PHP Класс Phalcon\Session\Adapter\HandlerSocket

Наследование: extends Phalcon\Session\Adapter, implements Phalcon\Session\AdapterInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$fields array Stores session data results
$hs HandlerSocket HandlerSocket object
$hsIndex integer HandlerSocket index number
$options =====> (string) cookie_domain : the domain for which the cookie is valid. =====> (int) lifetime : session lifetime in seconds =====> (array) server : an array of mysql handlersocket server : 'host' => (string) : the name of the mysql handlersocket server 'port' => (int) : the port of the mysql handlersocket server 'dbname' => (string) : the database name of the mysql handlersocket server 'dbtable' => (string) : the table name of the mysql handlersocket server

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

Метод Описание
__construct ( array $options = [] ) Class constructor.
__destruct ( ) : void Destructor
close ( ) : boolean
destroy ( string $id ) : boolean
gc ( integer $maxlifetime ) : boolean
open ( string $save_path, string $name ) : boolean
read ( string $id ) : string
start ( array $options = [] ) : void
write ( string $id, string $data ) : boolean

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

Метод Описание
init ( array $options ) Initialize HandlerSocket.

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

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

Class constructor.
public __construct ( array $options = [] )
$options array associative array of options

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

Destructor
public __destruct ( ) : void
Результат void

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

public close ( ) : boolean
Результат boolean

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

public destroy ( string $id ) : boolean
$id string
Результат boolean

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

public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer
Результат boolean

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

Initialize HandlerSocket.
protected init ( array $options )
$options array associative array of options

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

public open ( string $save_path, string $name ) : boolean
$save_path string
$name string
Результат boolean

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

public read ( string $id ) : string
$id string
Результат string

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

public start ( array $options = [] ) : void
$options array associative array of options
Результат void

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

public write ( string $id, string $data ) : boolean
$id string
$data string
Результат boolean

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

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

Stores session data results
protected array $fields
Результат array

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

HandlerSocket object
protected HandlerSocket,Phalcon\Session\Adapter $hs
Результат HandlerSocket

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

HandlerSocket index number
protected int $hsIndex
Результат integer

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

=====> (string) cookie_domain : the domain for which the cookie is valid. =====> (int) lifetime : session lifetime in seconds =====> (array) server : an array of mysql handlersocket server : 'host' => (string) : the name of the mysql handlersocket server 'port' => (int) : the port of the mysql handlersocket server 'dbname' => (string) : the database name of the mysql handlersocket server 'dbtable' => (string) : the table name of the mysql handlersocket server
protected $options