Class MOXMAN_Http_Session
Inheritance | MOXMAN_Http_Session |
---|
This class wrapps in the HTTP Session and adds various useful options.
Public Methods
Method | Description | Defined 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
Constructs a new HTTP Session instance.
public void __construct ( ) |
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. |
---|
Returns a name/value array with all session tiems.
public Array getAll ( ) | ||
return | Array | Name/value array with session items. |
---|
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. |
---|
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. |
---|