Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 3.96 KB

DOC.md

File metadata and controls

60 lines (44 loc) · 3.96 KB

Table of contents


Interface: SessionInterface

Interface SessionInterface

Visibility Function
public __construct() : void
SessionInterface constructor.
public get(string $key) : string/array/int/boolean/null
Get value of $key
public set(string $key, string/array/int/boolean $value) : void
Set value of $key
public start() : void
Start session.
public stop() : void
Stop current session.
public unset(string $key) : void
Delete value of $key

Class: \Hichxm\SessionManager\SessionManager

Class Session

Visibility Function
public __construct(\SessionInterface $SessionInterface) : void
SessionManager constructor.
public get(string $key) : string/array/int/boolean/null
Get value of $key
public offsetExists(mixed $offset) : boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.
Whether a offset exists

public offsetGet(mixed $offset) : mixed Can return all value types.
Offset to retrieve
public offsetSet(mixed $offset, mixed $value) : void
Offset to set
public offsetUnset(mixed $offset) : void
Offset to unset
public set(string $key, string/array/int/boolean $value) : void
Set value of $key
public start() : void
Start session.
public stop() : void
Stop current session.
public unset(string $key) : void
Delete value of $key

This class implements \ArrayAccess


Class: \Hichxm\SessionManager\Session\PHP_SESSION_MANAGER

Class PHP_SESSION_MANAGER

Visibility Function
public __construct(array $options=array()) : void
SessionInterface constructor.
public get(string $key) : string/array/int/boolean/null
Get value of $key
public id() : string
Return current session id.
public set(string $key, string/array/int/boolean $value) : void
Set value of $key
public start() : void
Start session.
public stop() : void
Stop current session.
public unset(string $key) : void
Delete value of $key

This class implements \SessionInterface