\JSONDB\Configuration
Class Configuration
Summary
Properties |
No properties |
Constants |
No constants |
Methods
addUser()
addUser(string $server, string $username, string $password)
Adds a user in the inner configuration file.
Parameters
string | $server |
The name of the server |
string | $username |
The username |
string | $password |
The user's password |
getConfig()
getConfig(string $filename) : array
Gets a JSONDB configuration file contents.
Parameters
string | $filename |
The configuration file's name |
Returns
array
_writeConfig()
_writeConfig(string $filename, array $config) : boolean
Writes a config file.
Parameters
string | $filename |
|
array | $config |
Returns
boolean
_exists()
_exists(string $filename) : boolean
Checks if a configuration file exist.
Parameters
string | $filename |
Returns
boolean