Commit 985b15f7 authored by Morris Jobke's avatar Morris Jobke
Browse files

introduce proper interface for deleteAppValue

parent b01c59b2
......@@ -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
......
......@@ -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.
*/
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment