PHP Class ManaPHP\Http\Session\Adapter\Db

Inheritance: extends ManaPHP\Component, implements ManaPHP\Http\Session\AdapterInterface
Show file Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_model
$_ttl

Public Methods

Method Description
__construct ( array $options = [] ) Db constructor.
clean ( ) : void
close ( ) : boolean
destroy ( string $sessionId ) : boolean
gc ( integer $ttl ) : boolean
open ( string $savePath, string $sessionName ) : boolean
read ( string $sessionId ) : string
write ( string $sessionId, string $data ) : boolean

Method Details

__construct() public method

Db constructor.
public __construct ( array $options = [] )
$options array

clean() public method

public clean ( ) : void
return void

close() public method

public close ( ) : boolean
return boolean

destroy() public method

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

gc() public method

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

open() public method

public open ( string $savePath, string $sessionName ) : boolean
$savePath string
$sessionName string
return boolean

read() public method

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

write() public method

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

Property Details

$_model protected property

protected $_model

$_ttl protected property

protected $_ttl