From: Morris Jobke Date: Tue, 25 Nov 2014 08:53:47 +0000 (+0100) Subject: introduce proper interface for deleteAppValue X-Git-Tag: v8.0.0alpha1~144^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=985b15f770eae72b53065de72ab081e6f5437499;p=nextcloud-server.git introduce proper interface for deleteAppValue --- 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