From 890dad24d6c095c41e6358b2a6cb61f1b6c2f6ad Mon Sep 17 00:00:00 2001 From: winter Date: Sun, 26 Jan 2025 15:25:17 +0000 Subject: add user settings / preferences --- Digitigrade/GlobalSettings.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Digitigrade/GlobalSettings.php') 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 -- cgit v1.3