PHP Class ManaPHP\Http\Session\Adapter\File

Inheritance: extends ManaPHP\Component, implements ManaPHP\Http\Session\AdapterInterface
显示文件 Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_dir string
$_extension string
$_level integer
$_ttl integer

Public Methods

Method Description
__construct ( array $options = [] ) File 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 )

Protected Methods

Method Description
_clean ( string $dir ) : void
_getFileName ( string $sessionId ) : string

Method Details

__construct() public method

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

_clean() protected method

protected _clean ( string $dir ) : void
$dir string
return void

_getFileName() protected method

protected _getFileName ( string $sessionId ) : string
$sessionId string
return string

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 )
$sessionId string
$data string

Property Details

$_dir protected_oe property

protected string $_dir
return string

$_extension protected_oe property

protected string $_extension
return string

$_level protected_oe property

protected int $_level
return integer

$_ttl protected_oe property

protected int $_ttl
return integer