diff options
| author | winter | 2025-01-26 15:25:17 +0000 |
|---|---|---|
| committer | winter | 2025-01-26 15:25:17 +0000 |
| commit | 890dad24d6c095c41e6358b2a6cb61f1b6c2f6ad (patch) | |
| tree | a662dfd61585b755054075cd93121a9c70a48983 /Digitigrade/GlobalSettings.php | |
| parent | 5841d6550936e1fc34f1fbdf4325b1e27ff79230 (diff) | |
add user settings / preferences
Diffstat (limited to 'Digitigrade/GlobalSettings.php')
| -rw-r--r-- | Digitigrade/GlobalSettings.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Digitigrade/GlobalSettings.php b/Digitigrade/GlobalSettings.php index 3e893e1..e8bbe59 100644 --- a/Digitigrade/GlobalSettings.php +++ b/Digitigrade/GlobalSettings.php @@ -52,6 +52,10 @@ class GlobalSettings extends Singleton { $stmt->execute([$key, $value]); } + public function setBool(string $key, bool $value) { + $this->set($key, $value ? 'true' : 'false'); + } + /** * Checks whether a setting is set. * @param string $key which setting to check |
