\DewdropSession

A simple facade to session data. You can use \Dewdrop\Session regardless of the environment you're running in (i.e. WP, Silex, Zend Framework, etc). It allows you to manipulate session data using object properties, array access or explicit method calls. This makes it particularly important for Dewdrop core because you can write your session code against \Dewdrop\Session and not worry about whether it will work in the other supported environments.

Summary

Methods
Properties
Constants
__construct()
get()
has()
regenerateId()
remove()
set()
__get()
__isset()
__unset()
__set()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
getAccessObject()
No public properties found
No constants found
No protected methods found
$access
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(  $access = null) 

Provide a Pimple container for retrieval of session storage.

Parameters

$access

get()

get(string  $name) : mixed

Returns value for given name

Parameters

string $name

Returns

mixed

has()

has(string  $name) : boolean

Returns whether value is set for given name

Parameters

string $name

Returns

boolean

regenerateId()

regenerateId() : void

Regenerates the session ID

remove()

remove(string  $name) : $this

Removes the named value

Parameters

string $name

Returns

$this

set()

set(string  $name, mixed  $value) : $this

Sets name to the given value

Parameters

string $name
mixed $value

Returns

$this

__get()

__get(string  $name) : mixed

Returns value for given name

Parameters

string $name

Returns

mixed

__isset()

__isset(string  $name) : boolean

Returns whether value is set for given name

Parameters

string $name

Returns

boolean

__unset()

__unset(  $name) 

Unset a value by calling unset() on an object property.

Parameters

$name

__set()

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

Sets name to the given value

Parameters

string $name
mixed $value

offsetExists()

offsetExists(string  $offset) : boolean

Whether a offset exists

Parameters

string $offset

Returns

boolean

offsetGet()

offsetGet(string  $offset) : mixed

Offset to retrieve

Parameters

string $offset

Returns

mixed

offsetSet()

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

Offset to set

Parameters

string $offset
mixed $value

offsetUnset()

offsetUnset(string  $offset) : void

Offset to unset

Parameters

string $offset