CORE POS - IS4C
The CORE POS front end
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
COREPOS\pos\lib\LocalStorage\LocalStorage Class Reference
Inheritance diagram for COREPOS\pos\lib\LocalStorage\LocalStorage:
COREPOS\pos\lib\LocalStorage\SessionStorage COREPOS\pos\lib\LocalStorage\UnitTestStorage COREPOS\pos\lib\LocalStorage\WrappedStorage

Public Member Functions

 __construct ()
 
 get ($key)
 
 set ($key, $val)
 
 current ()
 
 key ()
 
 next ()
 
 valid ()
 
 rewind ()
 
 iteratorKeys ()
 

Protected Member Functions

 debug ()
 

Protected Attributes

 $iterator_position = 0
 
 $iterator_keys = array()
 

Detailed Description

A module for storing persistent values This is handled via PHP sessions by default.

Interface class. Must be subclassed to do anything.

Constructor & Destructor Documentation

COREPOS\pos\lib\LocalStorage\LocalStorage::__construct ( )

Constructor

Member Function Documentation

COREPOS\pos\lib\LocalStorage\LocalStorage::current ( )

Iterator interface methods

COREPOS\pos\lib\LocalStorage\LocalStorage::debug ( )
protected

Log state changes if debugging is enabled

Call this from your set method

COREPOS\pos\lib\LocalStorage\LocalStorage::get (   $key)

Get the value stored with the given key

Parameters
$keyA unique key string
Returns
The value (mixed)

The value can be any PHP type that the underlying mechanism can store.

If the key is not found, the return value will be an empty string.

COREPOS\pos\lib\LocalStorage\LocalStorage::set (   $key,
  $val 
)

Save the value with the given key

Parameters
$keyA unique key string
$valThe value (mixed)

The value can be any PHP type that the underlying mechanism can store.


The documentation for this class was generated from the following file: