summaryrefslogtreecommitdiffstats
path: root/lib/public/iconfig.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-02-06 10:02:21 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-17 17:19:33 +0100
commit012016d3311a13c3c1e9d60778dc6fbd6be0204e (patch)
tree41161599ac2a823010b4b60faed612a981735198 /lib/public/iconfig.php
parentebb834d879f10ea24b8cf032f6f0000076843195 (diff)
downloadnextcloud-server-012016d3311a13c3c1e9d60778dc6fbd6be0204e.tar.gz
nextcloud-server-012016d3311a13c3c1e9d60778dc6fbd6be0204e.zip
Deprecated \OCP\IAppConfig - add missing methods to IConfig
Diffstat (limited to 'lib/public/iconfig.php')
-rw-r--r--lib/public/iconfig.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php
index 868a4133d2e..ec2b0b4cbb9 100644
--- a/lib/public/iconfig.php
+++ b/lib/public/iconfig.php
@@ -85,6 +85,16 @@ interface IConfig {
public function setAppValue($appName, $key, $value);
/**
+ * Checks if a key is set in the apps config
+ *
+ * @param string $appName the appName tto look a key up
+ * @param string $key the key to look up
+ * @return bool
+ * @since 8.1.0
+ */
+ public function hasAppKey($appName, $key);
+
+ /**
* Looks up an app wide defined value
*
* @param string $appName the appName that we stored the value under
@@ -95,6 +105,33 @@ interface IConfig {
public function getAppValue($appName, $key, $default = '');
/**
+ * Get all app values that are stored
+ *
+ * @param string $appName the appName
+ * @return array with key - value pair as they are saved previously
+ * @since 8.1.0
+ */
+ public function getAppValuesByApp($appName);
+
+ /**
+ * Get all app values that use the same key
+ *
+ * @param string $key the appName
+ * @return array with key - value pair as they are saved previously with the
+ * app name as key
+ * @since 8.1.0
+ */
+ public function getAppValuesByKey($key);
+
+ /**
+ * Get all apps that have at least one value saved
+ *
+ * @return array containing app names
+ * @since 8.1.0
+ */
+ public function getApps();
+
+ /**
* Delete an app wide defined value
*
* @param string $appName the appName that we stored the value under