Flintstone
class Flintstone
Constants
VERSION |
Flintstone version. |
Properties
protected Database | $database | Database class. | |
protected Config | $config | Config class. |
Methods
getDatabase()
Get the database.
mixed
get(string $key)
Get a key from the database.
set(string $key, mixed $data)
Set a key in the database.
delete(string $key)
Delete a key from the database.
flush()
Flush the database.
array
getKeys()
Get all keys from the database.
array
getAll()
Get all data from the database.
replace(string $key, mixed $data)
Replace a key in the database.
string
getLineString(string $key, mixed $data)
Get the line string to write.
mixed
decodeData(string $data)
Decode a string into data.
string
encodeData(mixed $data)
Encode data into a string.
Details
at line 53
Database
getDatabase()
Get the database.
at line 63
setDatabase(Database $database)
Set the database.
at line 73
Config
getConfig()
Get the config.
at line 83
setConfig(Config $config)
Set the config.
at line 96
mixed
get(string $key)
Get a key from the database.
at line 133
set(string $key, mixed $data)
Set a key in the database.
at line 157
delete(string $key)
Delete a key from the database.
at line 169
flush()
Flush the database.
at line 184
array
getKeys()
Get all keys from the database.
at line 202
array
getAll()
Get all data from the database.
at line 221
protected
replace(string $key, mixed $data)
Replace a key in the database.
at line 257
protected string
getLineString(string $key, mixed $data)
Get the line string to write.
at line 269
protected mixed
decodeData(string $data)
Decode a string into data.
at line 281
protected string
encodeData(mixed $data)
Encode data into a string.