PHP Class DB\Jig

Datei anzeigen Open project: bcosca/fatfree-core

Protected Properties

Property Type Description
$data @}
$dir @}
$format @}
$log @}
$uuid @}

Public Methods

Method Description
__construct ( $dir = NULL, $format = self::FORMAT_JSON ) Instantiate class
dir ( ) : string Return directory
drop ( ) : null Clean storage
jot ( $frame ) : null Jot down log entry
log ( $flag = TRUE ) : string Return profiler results (or disable logging)
read ( $file ) : array Read data from memory/file
uuid ( ) : string Return UUID
write ( $file, array $data = NULL ) : integer Write data to memory/file

Private Methods

Method Description
__clone ( ) ! Prohibit cloning

Method Details

__construct() public method

Instantiate class
public __construct ( $dir = NULL, $format = self::FORMAT_JSON )
$dir string
$format int

dir() public method

Return directory
public dir ( ) : string
return string

drop() public method

Clean storage
public drop ( ) : null
return null

jot() public method

Jot down log entry
public jot ( $frame ) : null
$frame string
return null

log() public method

Return profiler results (or disable logging)
public log ( $flag = TRUE ) : string
$flag bool
return string

read() public method

Read data from memory/file
public read ( $file ) : array
$file string
return array

uuid() public method

Return UUID
public uuid ( ) : string
return string

write() public method

Write data to memory/file
public write ( $file, array $data = NULL ) : integer
$file string
$data array array
return integer

Property Details

$data protected_oe property

@}
protected $data

$dir protected_oe property

@}
protected $dir

$format protected_oe property

@}
protected $format

$log protected_oe property

@}
protected $log

$uuid protected_oe property

@}
protected $uuid