diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-27 16:07:41 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-27 16:07:41 +0100 |
commit | 4d12c4a38b13e2319b85db27b03ba0eb6b9cff35 (patch) | |
tree | fe7934b972d2423c702c92366c17600fecaf3857 /lib/public/iconfig.php | |
parent | 722e50a112579d851b958a21cf26c2e85a4ce5c2 (diff) | |
parent | 378eef7eb45bd2ec8e6a06e2ba776f55078dcbef (diff) | |
download | nextcloud-server-4d12c4a38b13e2319b85db27b03ba0eb6b9cff35.tar.gz nextcloud-server-4d12c4a38b13e2319b85db27b03ba0eb6b9cff35.zip |
Merge pull request #13938 from owncloud/deprecate-iappconfig
Deprecated \OCP\IAppConfig - add missing methods to IConfig
Diffstat (limited to 'lib/public/iconfig.php')
-rw-r--r-- | lib/public/iconfig.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php index c63ba1a90a6..8321c4043cd 100644 --- a/lib/public/iconfig.php +++ b/lib/public/iconfig.php @@ -90,6 +90,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 @@ -100,6 +110,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 |