PHP Class Barryvdh\Debugbar\Storage\FilesystemStorage

Inheritance: implements DebugBar\Storage\StorageInterface
Show file Open project: barryvdh/laravel-debugbar

Protected Properties

Property Type Description
$dirname
$files
$gc_lifetime
$gc_probability Hours to keep collected data;

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $files, string $dirname )
clear ( ) {@inheritDoc}
find ( array $filters = [], $max = 20, $offset ) {@inheritDoc}
get ( $id ) {@inheritDoc}
makeFilename ( $id ) : string Create the filename for the data, based on the id.
save ( $id, $data ) {@inheritDoc}

Protected Methods

Method Description
filter ( $meta, $filters ) : boolean Filter the metadata for matches.
garbageCollect ( ) Delete files older then a certain age (gc_lifetime)

Method Details

__construct() public method

public __construct ( Illuminate\Filesystem\Filesystem $files, string $dirname )
$files Illuminate\Filesystem\Filesystem The filesystem
$dirname string Directories where to store files

clear() public method

{@inheritDoc}
public clear ( )

filter() protected method

Filter the metadata for matches.
protected filter ( $meta, $filters ) : boolean
$meta
$filters
return boolean

find() public method

{@inheritDoc}
public find ( array $filters = [], $max = 20, $offset )
$filters array

garbageCollect() protected method

Delete files older then a certain age (gc_lifetime)
protected garbageCollect ( )

get() public method

{@inheritDoc}
public get ( $id )

makeFilename() public method

Create the filename for the data, based on the id.
public makeFilename ( $id ) : string
$id
return string

save() public method

{@inheritDoc}
public save ( $id, $data )

Property Details

$dirname protected property

protected $dirname

$files protected property

protected $files

$gc_lifetime protected property

protected $gc_lifetime

$gc_probability protected property

Hours to keep collected data;
protected $gc_probability