PHP Class Phalcon\Session\Adapter\HandlerSocket

Inheritance: extends Phalcon\Session\Adapter, implements Phalcon\Session\AdapterInterface
ファイルを表示 Open project: phalcon/incubator Class Usage Examples

Protected Properties

Property Type Description
$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

Public Methods

Method Description
__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

Protected Methods

Method Description
init ( array $options ) Initialize HandlerSocket.

Method Details

__construct() public method

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

__destruct() public method

Destructor
public __destruct ( ) : void
return void

close() public method

public close ( ) : boolean
return boolean

destroy() public method

public destroy ( string $id ) : boolean
$id string
return boolean

gc() public method

public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer
return boolean

init() protected method

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

open() public method

public open ( string $save_path, string $name ) : boolean
$save_path string
$name string
return boolean

read() public method

public read ( string $id ) : string
$id string
return string

start() public method

public start ( array $options = [] ) : void
$options array associative array of options
return void

write() public method

public write ( string $id, string $data ) : boolean
$id string
$data string
return boolean

Property Details

$fields protected_oe property

Stores session data results
protected array $fields
return array

$hs protected_oe property

HandlerSocket object
protected HandlerSocket,Phalcon\Session\Adapter $hs
return HandlerSocket

$hsIndex protected_oe property

HandlerSocket index number
protected int $hsIndex
return integer

$options protected_oe property

=====> (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