introduce deleteAllUserValues

This commit is contained in:
Morris Jobke 2014-12-05 16:34:54 +01:00
parent 985b15f770
commit 719008836d
2 changed files with 16 additions and 0 deletions

View File

@ -152,4 +152,13 @@ class AllConfig implements \OCP\IConfig {
public function deleteUserValue($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);
}
}

View File

@ -141,4 +141,11 @@ interface IConfig {
* @param string $key the key under which the value is being stored
*/
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);
}