\Phile\Plugin\Phile\SimpleFileDataPersistence\PersistenceSimpleFileDataPersistence

Class SimpleFileDataPersistence

Summary

Methods
Properties
Constants
__construct()
has()
get()
set()
delete()
No public properties found
No constants found
getInternalKey()
getStorageFile()
$dataDirectory
N/A
No private methods found
No private properties found
N/A

Properties

$dataDirectory

$dataDirectory : string

Type

string — the data storage directory

Methods

__construct()

__construct()

the constructor

has()

has(mixed $key) : bool|mixed

check if key exists

Parameters

mixed $key

Returns

bool|mixed

get()

get(mixed $key) : mixed

get value for given key

Parameters

mixed $key

Throws

\Phile\Exception

Returns

mixed

set()

set(mixed $key, mixed $value) : mixed|void

set value for given key

Parameters

mixed $key
mixed $value

Returns

mixed|void

delete()

delete(string $key, array $options) : mixed|void

delte given key/index

Parameters

string $key
array $options

Throws

\Phile\Exception

Returns

mixed|void

getInternalKey()

getInternalKey(mixed $key) : string

generate internal key

Parameters

mixed $key

Returns

string

getStorageFile()

getStorageFile(mixed $key) : string

get storage filename

Parameters

mixed $key

Returns

string