class HybridSession extends BaseStore (View source)

Traits

Provides extensions to this object to integrate it with standard config API methods.

Methods

static Config_ForClass
config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

mixed
stat(string $name) deprecated

Get inherited config value

mixed
uninherited(string $name)

Gets the uninherited value for the given config option

$this
set_stat(string $name, mixed $value) deprecated

Update the config value for a given property

setKey(string $key)

No description

$this
setHandlers($handlers)

No description

bool
open(string $save_path, string $name)

No description

bool
close()

No description

string
read(string $session_id)

No description

write($session_id, $session_data)

No description

destroy($session_id)

No description

gc($maxlifetime)

No description

static 
init(string $key = null)

Register the session handler as the default

static 
is_enabled()

No description

Details

static Config_ForClass config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

Return Value

Config_ForClass

mixed stat(string $name) deprecated

deprecated 5.0 Use ->config()->get() instead

Get inherited config value

Parameters

string $name

Return Value

mixed

mixed uninherited(string $name)

Gets the uninherited value for the given config option

Parameters

string $name

Return Value

mixed

$this set_stat(string $name, mixed $value) deprecated

deprecated 5.0 Use ->config()->set() instead

Update the config value for a given property

Parameters

string $name
mixed $value

Return Value

$this

setKey(string $key)

Parameters

string $key

$this setHandlers($handlers)

Parameters

$handlers

Return Value

$this

bool open(string $save_path, string $name)

Parameters

string $save_path
string $name

Return Value

bool

bool close()

Return Value

bool

string read(string $session_id)

Parameters

string $session_id

Return Value

string

write($session_id, $session_data)

Parameters

$session_id
$session_data

destroy($session_id)

Parameters

$session_id

gc($maxlifetime)

Parameters

$maxlifetime

static init(string $key = null)

Register the session handler as the default

Parameters

string $key

Desired session key

static is_enabled()