...
Method | Description | Usage | Returns | |||||||
---|---|---|---|---|---|---|---|---|---|---|
get(string $key [, int $id = null] )
$key Unique storage key. $id If you store multiple data in a key
| Get data from the DB based on a unique key |
| On success it returns Core\Storage\Object, null on failure. | |||||||
getById(int $id)
$id Unique auto incremented ID. | Get a specific data set based on the unique |
| On success it returns Core\Storage\Object, null on failure. | |||||||
all(string $key)
$key Unique storage key. | Returns all data sets based on a unique key.
|
| Array of values on success, empty array on failure. Note: Each value from the array is an object from Core\Storage\Object | |||||||
set(string $key, mixed $value , int $id = 0] )
$key Unique storage key. $value Value to set for this entry. Can be a string, array, int or boolean. $id (optional) Include a custom unique ID for this data set. | Sets data into the DB based on your key.
|
| Returns unique auto increment ID on success, false on failure. |