Formagic session interface

category Formagic
package Session
author Florian Sonnenburg
copyright Copyright (c) 2007-2009 Florian Sonnenburg
version $Id: Interface.php 170 2012-05-06 20:21:49Z meweasle $, $Revision: 70 $

 Methods

Returns a value from session storage

get(string $key) : mixed

Parameters

$key

string

Session key

Exceptions

\Formagic_Session_Exception if value not exists

Returns

mixedValue from session storage

Checks if a value is present in session.

has(string $key) : boolean

This method will also return a positive result if the value is empty (null, empty string false, int 0).

Parameters

$key

string

Variable key

Returns

boolean

Clears all Formagic value from the session.

purge() : \Formagic_Session_Interface

Returns

Removes a value from session storage.

remove(string $key) : \Formagic_Session_Interface

Will silently do nothing if key does not exist.

Parameters

$key

string

Session key

Returns

Saves a value into session storage

set(string $key, mixed $value) : \Formagic_Session_Interface

Parameters

$key

string

Session key

$value

mixed

Value to be saved into session

Returns