\Pop\SessionSessionNamespace

Session namespace class

Summary

Methods
Properties
Constants
__construct()
setNamespace()
getNamespace()
setTimedValue()
setRequestValue()
__set()
__get()
__isset()
__unset()
offsetSet()
offsetGet()
offsetExists()
offsetUnset()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
init()
checkRequests()
checkExpirations()
$namespace
N/A

Properties

$namespace

$namespace : string

Session namespace

Type

string

Methods

__construct()

__construct(string  $namespace) 

Constructor

Private method to instantiate the session object

Parameters

string $namespace

setNamespace()

setNamespace(string  $namespace) : \Pop\Session\SessionNamespace

Set current namespace

Parameters

string $namespace

Returns

\Pop\Session\SessionNamespace

getNamespace()

getNamespace() : string

Get current namespace

Returns

string

setTimedValue()

setTimedValue(string  $key, mixed  $value, integer  $expire = 300) : \Pop\Session\SessionNamespace

Set a time-based value

Parameters

string $key
mixed $value
integer $expire

Returns

\Pop\Session\SessionNamespace

setRequestValue()

setRequestValue(string  $key, mixed  $value, integer  $hops = 1) : \Pop\Session\SessionNamespace

Set a request-based value

Parameters

string $key
mixed $value
integer $hops

Returns

\Pop\Session\SessionNamespace

__set()

__set(string  $name, mixed  $value) : void

Set a property in the session object that is linked to the $_SESSION global variable

Parameters

string $name
mixed $value

__get()

__get(string  $name) : mixed

Get method to return the value of the $_SESSION global variable

Parameters

string $name

Returns

mixed

__isset()

__isset(string  $name) : boolean

Return the isset value of the $_SESSION global variable

Parameters

string $name

Returns

boolean

__unset()

__unset(string  $name) : void

Unset the $_SESSION global variable

Parameters

string $name

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : void

ArrayAccess offsetSet

Parameters

mixed $offset
mixed $value

Throws

\Pop\Session\Exception

offsetGet()

offsetGet(mixed  $offset) : mixed

ArrayAccess offsetGet

Parameters

mixed $offset

Returns

mixed

offsetExists()

offsetExists(mixed  $offset) : boolean

ArrayAccess offsetExists

Parameters

mixed $offset

Returns

boolean

offsetUnset()

offsetUnset(mixed  $offset) : void

ArrayAccess offsetUnset

Parameters

mixed $offset

Throws

\Pop\Session\Exception

init()

init() : void

Init the session

checkRequests()

checkRequests() : void

Check the request-based session values

checkExpirations()

checkExpirations() : void

Check the time-based session values