Class for using JSON as a key->value data store

package miniMVC
subpackage Libraries

 Methods

Magic function called when cloning an object

__clone() 

Output the data on destruct

__destruct() 

Magic method to simplify isset checking for config options

__get(string $key) : mixed

Parameters

$key

string

Returns

mixed

Magic method to simplify setting config options

__set(string $key, $val) 

Parameters

$key

string

$val

mixed

Removes a key from the data store

del(string $key) : void

Parameters

$key

string

Return the entire data store object

get_all() : object

Returns

object

Static method to retreive current instance of the singleton

get_instance() : \miniMVC\self

Returns

\miniMVC\self

Create and/or load json file

__construct() 

 Properties

 

Settings object represented by the currently loaded JSON file

$current 

 

Singleton instance

$instance