summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-28 16:13:52 +0200
committerVincent Petry <pvince81@owncloud.com>2014-10-09 18:19:59 +0200
commit4858b5e94a9a64ee30bc66473e5864c853e92b33 (patch)
tree3a9d13323f50322e47d6c03091889ad23c20cf63
parent3d68d172af6ede67fad7bbed2a61a60663ef226e (diff)
downloadnextcloud-server-4858b5e94a9a64ee30bc66473e5864c853e92b33.tar.gz
nextcloud-server-4858b5e94a9a64ee30bc66473e5864c853e92b33.zip
Expose getAppKeys trough \OCP\IConfig
-rw-r--r--lib/private/allconfig.php18
-rw-r--r--lib/public/iconfig.php14
2 files changed, 32 insertions, 0 deletions
diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php
index eb114546010..f87277f8366 100644
--- a/lib/private/allconfig.php
+++ b/lib/private/allconfig.php
@@ -34,6 +34,24 @@ class AllConfig implements \OCP\IConfig {
return \OCP\Config::getSystemValue($key, $default);
}
+ /**
+ * Delete a system wide defined value
+ *
+ * @param string $key the key of the value, under which it was saved
+ */
+ public function deleteSystemValue($key) {
+ \OCP\Config::deleteSystemValue($key);
+ }
+
+ /**
+ * Get all keys stored for an app
+ *
+ * @param string $appName the appName that we stored the value under
+ * @return string[] the keys stored for the app
+ */
+ public function getAppKeys($appName) {
+ return \OC::$server->getAppConfig()->getKeys($appName);
+ }
/**
* Writes a new app wide value
diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php
index d4a8cdc7381..1d13a7a6e2e 100644
--- a/lib/public/iconfig.php
+++ b/lib/public/iconfig.php
@@ -51,6 +51,20 @@ interface IConfig {
*/
public function getSystemValue($key, $default = '');
+ /**
+ * Delete a system wide defined value
+ *
+ * @param string $key the key of the value, under which it was saved
+ */
+ public function deleteSystemValue($key);
+
+ /**
+ * Get all keys stored for an app
+ *
+ * @param string $appName the appName that we stored the value under
+ * @return string[] the keys stored for the app
+ */
+ public function getAppKeys($appName);
/**
* Writes a new app wide value