\PrivateBin\PersistenceAbstractPersistence

AbstractPersistence

persists data in PHP files

Summary

Methods
Properties
Constants
setPath()
getPath()
No public properties found
No constants found
_exists()
_initialize()
_store()
No protected properties found
N/A
No private methods found
$_path
N/A

Properties

$_path

$_path : string

path in which to persist something

Type

string

Methods

setPath()

setPath(string  $path) 

set the path

Parameters

string $path

getPath()

getPath(string  $filename = null) : string

get the path

Parameters

string $filename

Returns

string

_exists()

_exists(string  $filename) : boolean

checks if the file exists

Parameters

string $filename

Returns

boolean

_initialize()

_initialize() 

prepares path for storage

Throws

\Exception

_store()

_store(string  $filename, string  $data) : string

store the data

Parameters

string $filename
string $data

Throws

\Exception

Returns

string