Session-based pseudo-mapper.
More...
|
| $id |
| Current item identifier.
|
|
| $item =array() |
| Current item contents.
|
|
|
const | E_Field ='Undefined field %s' |
|
Session-based pseudo-mapper.
Basket::__construct |
( |
|
$key = 'basket' | ) |
|
Instantiate class
- Returns
- void
- Parameters
-
Check out basket contents
- Returns
- array
Delete field
- Returns
- NULL
- Parameters
-
Hydrate item using hive array variable
- Returns
- NULL
- Parameters
-
Populate hive array variable with item contents
- Returns
- NULL
- Parameters
-
Return number of items in basket
- Returns
- int
Return TRUE if current item is empty/undefined
- Returns
- bool
Basket::erase |
( |
|
$key, |
|
|
|
$val |
|
) |
| |
Erase item matching key/value pair
- Returns
- bool
- Parameters
-
Return TRUE if field is defined
- Returns
- bool
- Parameters
-
Basket::find |
( |
|
$key = NULL , |
|
|
|
$val = NULL |
|
) |
| |
Return items that match key/value pair; If no key/value pair specified, return all items
- Returns
- array
- Parameters
-
Basket::findone |
( |
|
$key, |
|
|
|
$val |
|
) |
| |
Return first item that matches key/value pair
- Returns
- object|FALSE
- Parameters
-
Retrieve value of field
- Returns
- scalar|FALSE
- Parameters
-
Basket::load |
( |
|
$key, |
|
|
|
$val |
|
) |
| |
Map current item to matching key/value pair
- Returns
- array
- Parameters
-
Save current item
- Returns
- array
Basket::set |
( |
|
$key, |
|
|
|
$val |
|
) |
| |
Assign value to field
- Returns
- scalar|FALSE
- Parameters
-
The documentation for this class was generated from the following file: