introduce deleteAllUserValues
This commit is contained in:
parent
985b15f770
commit
719008836d
|
@ -152,4 +152,13 @@ class AllConfig implements \OCP\IConfig {
|
||||||
public function deleteUserValue($userId, $appName, $key) {
|
public function deleteUserValue($userId, $appName, $key) {
|
||||||
\OC_Preferences::deleteKey($userId, $appName, $key);
|
\OC_Preferences::deleteKey($userId, $appName, $key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete all user values
|
||||||
|
*
|
||||||
|
* @param string $userId the userId of the user that we want to remove all values from
|
||||||
|
*/
|
||||||
|
public function deleteAllUserValues($userId) {
|
||||||
|
\OC_Preferences::deleteUser($userId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,4 +141,11 @@ interface IConfig {
|
||||||
* @param string $key the key under which the value is being stored
|
* @param string $key the key under which the value is being stored
|
||||||
*/
|
*/
|
||||||
public function deleteUserValue($userId, $appName, $key);
|
public function deleteUserValue($userId, $appName, $key);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete all user values
|
||||||
|
*
|
||||||
|
* @param string $userId the userId of the user that we want to remove all values from
|
||||||
|
*/
|
||||||
|
public function deleteAllUserValues($userId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue