CORE POS - IS4C
The CORE POS front end
|
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() | |
A module for storing persistent values This is handled via PHP sessions by default.
Interface class. Must be subclassed to do anything.
COREPOS\pos\lib\LocalStorage\LocalStorage::__construct | ( | ) |
Constructor
COREPOS\pos\lib\LocalStorage\LocalStorage::current | ( | ) |
Iterator interface methods
|
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
$key | A unique key string |
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
$key | A unique key string |
$val | The value (mixed) |
The value can be any PHP type that the underlying mechanism can store.