diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-23 10:50:25 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-23 11:00:53 +0100 |
commit | c61e9f391273e5f7f4b7aa91ee4174d47402cae9 (patch) | |
tree | 1993ccdd315b3ea8d14123ee3514fde2b8707d4f /lib/public/iconfig.php | |
parent | bc93a8f14094dfb59c826ffa76d7b046370b0410 (diff) | |
download | nextcloud-server-c61e9f391273e5f7f4b7aa91ee4174d47402cae9.tar.gz nextcloud-server-c61e9f391273e5f7f4b7aa91ee4174d47402cae9.zip |
Add a method to set/unset multiple config values in one call
This reduces the number of file writes we do for config.php and therefor
hopefully helps lowering the chances for empty config.php files
Diffstat (limited to 'lib/public/iconfig.php')
-rw-r--r-- | lib/public/iconfig.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php index a1952ef8f84..868a4133d2e 100644 --- a/lib/public/iconfig.php +++ b/lib/public/iconfig.php @@ -35,6 +35,14 @@ namespace OCP; */ interface IConfig { /** + * Sets and deletes system wide values + * + * @param array $configs Associative array with `key => value` pairs + * If value is null, the config key will be deleted + */ + public function setSystemValues(array $configs); + + /** * Sets a new system wide value * * @param string $key the key of the value, under which will be saved |