\DebugBar\StorageFileStorage

Stores collected data into files

Summary

Methods
Properties
Constants
__construct()
save()
get()
find()
clear()
makeFilename()
No public properties found
No constants found
filter()
$dirname
N/A
No private methods found
No private properties found
N/A

Properties

$dirname

$dirname : 

Type

Methods

__construct()

__construct(string  $dirname) 

Parameters

string $dirname

Directories where to store files

save()

save(string  $id, string  $data) 

Saves collected data

Parameters

string $id
string $data

get()

get(string  $id) : array

Returns collected data with the specified id

Parameters

string $id

Returns

array

find()

find(array  $filters = array(), integer  $max = 20, integer  $offset) : array

Returns a metadata about collected data

Parameters

array $filters
integer $max
integer $offset

Returns

array

clear()

clear() 

Clears all the collected data

makeFilename()

makeFilename(string  $id) : string

Parameters

string $id

Returns

string

filter()

filter(array  $meta, array  $filters) : boolean

Filter the metadata for matches.

Parameters

array $meta
array $filters

Returns

boolean