introduce proper interface for deleteAppValue
This commit is contained in:
parent
b01c59b224
commit
985b15f770
|
@ -96,6 +96,15 @@ class AllConfig implements \OCP\IConfig {
|
||||||
\OC_Appconfig::deleteKey($appName, $key);
|
\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
|
* Set a user defined value
|
||||||
|
|
|
@ -87,6 +87,7 @@ interface IAppConfig {
|
||||||
* Remove app from appconfig
|
* Remove app from appconfig
|
||||||
* @param string $app app
|
* @param string $app app
|
||||||
* @return bool
|
* @return bool
|
||||||
|
* @deprecated use method deleteAppValue of \OCP\IConfig
|
||||||
*
|
*
|
||||||
* Removes all keys in appconfig belonging to the app.
|
* Removes all keys in appconfig belonging to the app.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -94,6 +94,13 @@ interface IConfig {
|
||||||
*/
|
*/
|
||||||
public function deleteAppValue($appName, $key);
|
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
|
* Set a user defined value
|
||||||
|
|
Loading…
Reference in New Issue