\Pop\SessionAbstractSession

Abstract session class

Summary

Methods
Properties
Constants
kill()
setTimedValue()
setRequestValue()
count()
getIterator()
toArray()
__get()
__set()
__isset()
__unset()
offsetSet()
offsetGet()
offsetExists()
offsetUnset()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

kill()

kill() : void

Destroy the session

setTimedValue()

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

Set a time-based value

Parameters

string $key
mixed $value
integer $expire

Returns

\Pop\Session\AbstractSession

setRequestValue()

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

Set a request-based value

Parameters

string $key
mixed $value
integer $hops

Returns

\Pop\Session\AbstractSession

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

Magic get method to return the value of values[$name].

Parameters

string $name

Returns

mixed

__set()

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

Magic set method to set values[$name].

Parameters

string $name
mixed $value

__isset()

__isset(string  $name) : boolean

Return the isset value of values[$name].

Parameters

string $name

Returns

boolean

__unset()

__unset(string  $name) : void

Unset values[$name].

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