extends |
Hm_Config |
|---|
DB based user settings
| Methods | ||||||
|---|---|---|---|---|---|---|
public
|
__construct(object $config)
Load site config
Load site config Parameters
|
# | ||||
public
|
load(string $username, string $key): boolean
Load the user settings from the DB
Load the user settings from the DB Parameters
Implements |
# | ||||
public
|
reload(array $data, string $username = false): void
Reload from outside input
Reload from outside input Parameters
|
# | ||||
public
|
connect(): bool
Connect to a configured DB
Connect to a configured DB Returnstrue on success |
# | ||||
public
|
save(string $username, string $key): integer|boolean|array
Save user settings to the DB
Save user settings to the DB Parameters
|
# | ||||
public
|
set(string $name, string $value): void
Set a config value
Set a config value Parameters
Overrides |
# | ||||
public
|
reset_factory(): void
Reset config to default values
|
# | ||||
| Methods inherited from Hm_Config |
|---|
dump(), del(), version(), get(), set_tz(), shuffle(), decode(), filter_servers(), restore_servers() |
| Properties inherited from Hm_Config |
|---|
$source, $config, $decrypt_failed, $encrypted_str, $save_on_login |