Browse Source

added abstract function revokeAll()

tags/2.0.0-beta
Panagiotis Moustafellos 11 years ago
parent
commit
8eb3b53f2a
  1. 6
      framework/yii/rbac/Manager.php

6
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

Loading…
Cancel
Save