introduce proper interface for deleteAppValue

This commit is contained in:
Morris Jobke 2014-11-25 09:53:47 +01:00
parent b01c59b224
commit 985b15f770
3 changed files with 17 additions and 0 deletions

View 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

View 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.
*/

View 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