rbac\PhpManager $children

$children protected property protected array $children = []

rbac\PhpManager $assignments

$assignments protected property protected array $assignments = []

rbac\PhpManager $assignmentFile

$assignmentFile public property The path of the PHP script that contains the authorization assignments. This can be either a file path or a path alias to the file. Make sure this file is writable by the Web server process if the authorization needs to be changed online. See also: loadFromFile() saveToFile() public string $assignmentFile = '@app/rbac/assignments.php'

rbac\Permission $type

$type public property The type of the item. This should be either TYPE_ROLE or TYPE_PERMISSION. The type of the item. This should be either TYPE_ROLE or TYPE_PERMISSION. public integer $type = self::TYPE_PERMISSION

rbac\ManagerInterface update()

update() public abstract method Updates the specified role, permission or rule in the system. public abstract boolean update ( $name, $object )$name string The old name of the role, permission or rule $object yii\rbac\Role|yii\rbac\Permission|yii\rbac\Rule return boolean Whether the update is successful throws Exception if data validation or saving fails (such as the name of the role or permission is not unique)

rbac\ManagerInterface revokeAll()

revokeAll() public abstract method Revokes all roles from a user. public abstract boolean revokeAll ( $userId )$userId mixed The user ID (see yii\web\User::$id) return boolean Whether the revoking is successful

rbac\ManagerInterface revoke()

revoke() public abstract method Revokes a role from a user. public abstract boolean revoke ( $role, $userId )$role yii\rbac\Role $userId string|integer The user ID (see yii\web\User::$id) return boolean Whether the revoking is successful

rbac\ManagerInterface removeChildren()

removeChildren() public abstract method Removed all children form their parent. Note, the children items are not deleted. Only the parent-child relationships are removed. public abstract boolean removeChildren ( $parent )$parent yii\rbac\Item return boolean Whether the removal is successful

rbac\ManagerInterface removeChild()

removeChild() public abstract method Removes a child from its parent. Note, the child item is not deleted. Only the parent-child relationship is removed. public abstract boolean removeChild ( $parent, $child )$parent yii\rbac\Item $child yii\rbac\Item return boolean Whether the removal is successful

rbac\ManagerInterface removeAllRules()

removeAllRules() public abstract method Removes all rules. All roles and permissions which have rules will be adjusted accordingly. public abstract void removeAllRules ( )