Fat-Free Framework: DB\Jig Class Reference

Fat-Free-Framework

Fat-Free Framework  3.1.0 API 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
$dirstring
$formatint

Member Function Documentation

DB\Jig::drop ( )

Clean storage

Returns
NULL
DB\Jig::jot (   $frame)

Jot down log entry

Returns
NULL
Parameters
$framestring
DB\Jig::log ( )

Return SQL profiler results

Returns
string
DB\Jig::read (   $file)

Read data from file

Returns
array
Parameters
$filestring
DB\Jig::write (   $file,
array  $data = NULL 
)

Write data to file

Returns
int
Parameters
$filestring
$dataarray

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   doxygen 1.8.4