diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-06 17:07:20 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-02-22 08:25:41 +0100 |
commit | a11ef5134cb4200399e74811bbf9d1100923efcd (patch) | |
tree | 413ab27f1f4afe390377a858d01e2e9b189731f9 /lib/public/IConfig.php | |
parent | e7f0e8ba03363f37631ded3099d4e2bf0df5d5f6 (diff) | |
download | nextcloud-server-a11ef5134cb4200399e74811bbf9d1100923efcd.tar.gz nextcloud-server-a11ef5134cb4200399e74811bbf9d1100923efcd.zip |
Add methods to get casted system values
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/IConfig.php')
-rw-r--r-- | lib/public/IConfig.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/public/IConfig.php b/lib/public/IConfig.php index e4cd158f872..878c0acf0c3 100644 --- a/lib/public/IConfig.php +++ b/lib/public/IConfig.php @@ -75,6 +75,36 @@ interface IConfig { public function getSystemValue($key, $default = ''); /** + * Looks up a boolean system wide defined value + * + * @param string $key the key of the value, under which it was saved + * @param bool $default the default value to be returned if the value isn't set + * @return bool the value or $default + * @since 16.0.0 + */ + public function getSystemValueBool(string $key, bool $default = false): bool; + + /** + * Looks up an integer system wide defined value + * + * @param string $key the key of the value, under which it was saved + * @param int $default the default value to be returned if the value isn't set + * @return int the value or $default + * @since 16.0.0 + */ + public function getSystemValueInt(string $key, int $default = 0): int; + + /** + * Looks up a string system wide defined value + * + * @param string $key the key of the value, under which it was saved + * @param string $default the default value to be returned if the value isn't set + * @return string the value or $default + * @since 16.0.0 + */ + public function getSystemValueString(string $key, string $default = ''): string; + + /** * Looks up a system wide defined value and filters out sensitive data * * @param string $key the key of the value, under which it was saved |