PHP Class Phalcon\Session\Adapter\HandlerSocket

Inheritance: extends Phalcon\Session\Adapter, implements Phalcon\Session\AdapterInterface
Afficher le fichier Open project: phalcon/incubator Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
init ( array $options ) Initialize HandlerSocket.

Method Details

__construct() public méthode

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

__destruct() public méthode

Destructor
public __destruct ( ) : void
Résultat void

close() public méthode

public close ( ) : boolean
Résultat boolean

destroy() public méthode

public destroy ( string $id ) : boolean
$id string
Résultat boolean

gc() public méthode

public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer
Résultat boolean

init() protected méthode

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

open() public méthode

public open ( string $save_path, string $name ) : boolean
$save_path string
$name string
Résultat boolean

read() public méthode

public read ( string $id ) : string
$id string
Résultat string

start() public méthode

public start ( array $options = [] ) : void
$options array associative array of options
Résultat void

write() public méthode

public write ( string $id, string $data ) : boolean
$id string
$data string
Résultat boolean

Property Details

$fields protected_oe property

Stores session data results
protected array $fields
Résultat array

$hs protected_oe property

HandlerSocket object
protected HandlerSocket,Phalcon\Session\Adapter $hs
Résultat HandlerSocket

$hsIndex protected_oe property

HandlerSocket index number
protected int $hsIndex
Résultat 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