added abstract function revokeAll()

parent e16fb959
...@@ -268,6 +268,12 @@ abstract class Manager extends Component ...@@ -268,6 +268,12 @@ abstract class Manager extends Component
* @return boolean whether removal is successful * @return boolean whether removal is successful
*/ */
abstract public function revoke($userId, $itemName); 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. * Returns a value indicating whether the item has been assigned to the user.
* @param mixed $userId the user ID (see [[User::id]]) * @param mixed $userId the user ID (see [[User::id]])
......
Markdown is supported
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