From 8eb3b53f2a5f9846293401fb328c847116d82512 Mon Sep 17 00:00:00 2001 From: Panagiotis Moustafellos Date: Sat, 23 Nov 2013 18:35:28 +0200 Subject: [PATCH] added abstract function revokeAll() --- framework/yii/rbac/Manager.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/yii/rbac/Manager.php b/framework/yii/rbac/Manager.php index 1710a77..a1bf47a 100644 --- a/framework/yii/rbac/Manager.php +++ b/framework/yii/rbac/Manager.php @@ -269,6 +269,12 @@ abstract class Manager extends Component */ abstract public function revoke($userId, $itemName); /** + * Revokes all authorization assignments from a user. + * @param mixed $userId the user ID (see [[User::id]]) + * @return boolean whether removal is successful + */ + abstract public function revokeAll($userId); + /** * Returns a value indicating whether the item has been assigned to the user. * @param mixed $userId the user ID (see [[User::id]]) * @param string $itemName the item name