diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-25 09:53:47 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-08 22:29:42 +0100 |
commit | 985b15f770eae72b53065de72ab081e6f5437499 (patch) | |
tree | 127c9a0bdf123c2d68d47e77048a3ecb9dc5a489 /lib | |
parent | b01c59b2249d9624c9ff8df5d8db22039b845204 (diff) | |
download | nextcloud-server-985b15f770eae72b53065de72ab081e6f5437499.tar.gz nextcloud-server-985b15f770eae72b53065de72ab081e6f5437499.zip |
introduce proper interface for deleteAppValue
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/allconfig.php | 9 | ||||
-rw-r--r-- | lib/public/iappconfig.php | 1 | ||||
-rw-r--r-- | lib/public/iconfig.php | 7 |
3 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/allconfig.php b/lib/private/allconfig.php index e06879d4723..71393a0d163 100644 --- a/lib/private/allconfig.php +++ b/lib/private/allconfig.php @@ -96,6 +96,15 @@ class AllConfig implements \OCP\IConfig { \OC_Appconfig::deleteKey($appName, $key); } + /** + * Removes all keys in appconfig belonging to the app + * + * @param string $appName the appName the configs are stored under + */ + public function deleteAppValues($appName) { + \OC_Appconfig::deleteApp($appName); + } + /** * Set a user defined value diff --git a/lib/public/iappconfig.php b/lib/public/iappconfig.php index da4090d5e69..cbd1a7e0573 100644 --- a/lib/public/iappconfig.php +++ b/lib/public/iappconfig.php @@ -87,6 +87,7 @@ interface IAppConfig { * Remove app from appconfig * @param string $app app * @return bool + * @deprecated use method deleteAppValue of \OCP\IConfig * * Removes all keys in appconfig belonging to the app. */ diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php index 554fee5b22f..671ae92234b 100644 --- a/lib/public/iconfig.php +++ b/lib/public/iconfig.php @@ -94,6 +94,13 @@ interface IConfig { */ public function deleteAppValue($appName, $key); + /** + * Removes all keys in appconfig belonging to the app + * + * @param string $appName the appName the configs are stored under + */ + public function deleteAppValues($appName); + /** * Set a user defined value |