]> source.dussan.org Git - nextcloud-server.git/commitdiff
introduce proper interface for deleteAppValue
authorMorris Jobke <hey@morrisjobke.de>
Tue, 25 Nov 2014 08:53:47 +0000 (09:53 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 8 Dec 2014 21:29:42 +0000 (22:29 +0100)
lib/private/allconfig.php
lib/public/iappconfig.php
lib/public/iconfig.php

index e06879d4723fd57e091fcdf17c6eabc1834fd5ba..71393a0d163400cec7973bbd228436916c7a28be 100644 (file)
@@ -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
index da4090d5e694bb87d8d76bab1163e3b44d1519d5..cbd1a7e0573ede04986d2da71b156239dfcf6b70 100644 (file)
@@ -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.
         */
index 554fee5b22fddde07f60443c0613bbd0187887ef..671ae92234b45a8f7481c83f8eaf6f67a3048947 100644 (file)
@@ -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