summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-28 16:13:52 +0200
committerVincent Petry <pvince81@owncloud.com>2014-10-08 14:22:17 +0200
commit12ac3a800df10cada530c57659bd9fdbc770079b (patch)
treee01feff56234859aa69a92e1785f35393fff4d95 /lib
parent6585eaa5df7a4481638a334926743d496f243d65 (diff)
downloadnextcloud-server-12ac3a800df10cada530c57659bd9fdbc770079b.tar.gz
nextcloud-server-12ac3a800df10cada530c57659bd9fdbc770079b.zip
Expose getAppKeys trough \OCP\IConfig
Diffstat (limited to 'lib')
-rw-r--r--lib/private/allconfig.php9
-rw-r--r--lib/public/iconfig.php7
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php
index 721ec337ff8..7ebff7cf2db 100644
--- a/lib/private/allconfig.php
+++ b/lib/private/allconfig.php
@@ -43,6 +43,15 @@ class AllConfig implements \OCP\IConfig {
\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 755da09ee6b..404cf030dee 100644
--- a/lib/public/iconfig.php
+++ b/lib/public/iconfig.php
@@ -58,6 +58,13 @@ interface IConfig {
*/
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