Fat-Free Framework
3.1.0 API Reference
|
DB\Jig Class Reference
Flat-file DB wrapper. More...
Public Member Functions | |
read ($file) | |
write ($file, array $data=NULL) | |
log () | |
jot ($frame) | |
drop () | |
__construct ($dir, $format=self::FORMAT_JSON) | |
Public Attributes | |
$format | |
Current storage format. | |
$log | |
Jig log. | |
const | FORMAT_JSON =0 |
const | FORMAT_Serialized =1 |
Protected Attributes | |
$dir | |
Storage location. | |
Detailed Description
Flat-file DB wrapper.
Constructor & Destructor Documentation
DB\Jig::__construct | ( | $dir, | |
$format = self::FORMAT_JSON |
|||
) |
Instantiate class
- Parameters
-
$dir string $format int
Member Function Documentation
DB\Jig::drop | ( | ) |
Clean storage
- Returns
- NULL
DB\Jig::jot | ( | $frame) |
Jot down log entry
- Returns
- NULL
- Parameters
-
$frame string
DB\Jig::log | ( | ) |
Return SQL profiler results
- Returns
- string
DB\Jig::read | ( | $file) |
Read data from file
- Returns
- array
- Parameters
-
$file string
DB\Jig::write | ( | $file, | |
array | $data = NULL |
||
) |
Write data to file
- Returns
- int
- Parameters
-
$file string $data array
The documentation for this class was generated from the following file:
- db/jig.php
Generated on Mon Aug 19 2013 21:28:00 for Fat-Free Framework by 1.8.4