In-memory/flat-file DB wrapper.
More...
|
| $dir |
| Storage location.
|
|
| $format |
| Current storage format.
|
|
| $log |
| Jig log.
|
|
| $data |
| Memory-held data.
|
|
|
const | FORMAT_JSON =0 |
|
const | FORMAT_Serialized =1 |
|
In-memory/flat-file DB wrapper.
DB\Jig::__construct |
( |
|
$dir = NULL , |
|
|
|
$format = self::FORMAT_JSON |
|
) |
| |
Instantiate class
- Parameters
-
Return directory
- Returns
- string
Clean storage
- Returns
- NULL
Jot down log entry
- Returns
- NULL
- Parameters
-
Return profiler results
- Returns
- string
Read data from memory/file
- Returns
- array
- Parameters
-
Return UUID
- Returns
- string
DB\Jig::write |
( |
|
$file, |
|
|
array |
$data = NULL |
|
) |
| |
Write data to memory/file
- Returns
- int
- Parameters
-
The documentation for this class was generated from the following file: