Class MOXMAN_Http_Session

InheritanceMOXMAN_Http_Session

This class wrapps in the HTTP Session and adds various useful options.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructs a new HTTP Session instance. MOXMAN_Http_Session
get() Returns the specified item from session. MOXMAN_Http_Session
getAll() Returns a name/value array with all session tiems. MOXMAN_Http_Session
has() Returns true/false if the request has the specified item name or not. MOXMAN_Http_Session
put() Puts a session value by name into collection. MOXMAN_Http_Session

Method Details

__construct() public method

Constructs a new HTTP Session instance.

public void __construct ( )
get() public method

Returns the specified item from session.

public String get ( $name, $default "" )
$name string

Name of the item to retrive.

$default string

Default value to return if the specified item wasn't found.

return String

Value of the specified string or an empty string if it wasn't found.

getAll() public method

Returns a name/value array with all session tiems.

public Array getAll ( )
return Array

Name/value array with session items.

has() public method

Returns true/false if the request has the specified item name or not.

public Boolean has ( $name )
$name string

Name if the item to check for.

return Boolean

True/false if the item exists or not.

put() public method

Puts a session value by name into collection.

public MOXMAN_Http_Session put ( $name, $value )
$name string

Session key.

$value Mixed

Session value.

return MOXMAN_Http_Session

Session instance.