\Pop\SessionSessionNamespace

Session namespace class

Summary

Methods
Properties
Constants
kill()
setTimedValue()
setRequestValue()
count()
getIterator()
toArray()
__get()
__set()
__isset()
__unset()
offsetSet()
offsetGet()
offsetExists()
offsetUnset()
__construct()
setNamespace()
getNamespace()
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

kill()

kill() : void

Kill the session namespace

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

count()

count() : integer

Method to get the count of data in the session

Returns

integer

getIterator()

getIterator() : \ArrayIterator

Method to iterate over the session

Returns

\ArrayIterator

toArray()

toArray() : array

Get the session values as an array

Returns

array

__get()

__get(string  $name) : mixed

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

Parameters

string $name

Returns

mixed

__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

__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

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

__construct()

__construct(string  $namespace) 

Constructor

Private method to instantiate the session object

Parameters

string $namespace

Throws

\Pop\Session\Exception

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

init()

init() : void

Init the session

checkRequests()

checkRequests() : void

Check the request-based session values

checkExpirations()

checkExpirations() : void

Check the time-based session values