rbac\ManagerInterface getAssignment()

getAssignment() public abstract method Returns the assignment information regarding a role and a user. public abstract null|yii\rbac\Assignment getAssignment ( $roleName, $userId )$roleName string The role name $userId string|integer The user ID (see yii\web\User::$id) return null|yii\rbac\Assignment The assignment information. Null is returned if the role is not assigned to the user.

rbac\ManagerInterface createPermission()

createPermission() public abstract method Creates a new Permission object. Note that the newly created permission is not added to the RBAC system yet. You must fill in the needed data and call add() to add it to the system. public abstract yii\rbac\Permission createPermission ( $name )$name string The permission name return yii\rbac\Permission The new Permission object

rbac\ManagerInterface assign()

assign() public abstract method Assigns a role to a user. public abstract yii\rbac\Assignment assign ( $role, $userId )$role yii\rbac\Role $userId string|integer The user ID (see yii\web\User::$id) return yii\rbac\Assignment The role assignment information. throws Exception if the role has already been assigned to the user

rbac\ManagerInterface canAddChild()

canAddChild() public abstract method (available since version 2.0.8) Checks the possibility of adding a child to parent public abstract boolean canAddChild ( $parent, $child )$parent yii\rbac\Item The parent item $child yii\rbac\Item The child item to be added to the hierarchy return boolean Possibility of adding

rbac\ManagerInterface addChild()

addChild() public abstract method Adds an item as a child of another item. public abstract boolean addChild ( $parent, $child )$parent yii\rbac\Item $child yii\rbac\Item return boolean Whether the child successfully added throws yii\base\Exception if the parent-child relationship already exists or if a loop has been detected.

rbac\ManagerInterface add()

add() public abstract method Adds a role, permission or rule to the RBAC system. public abstract boolean add ( $object )$object yii\rbac\Role|yii\rbac\Permission|yii\rbac\Rule return boolean Whether the role, permission or rule is successfully added to the system throws Exception if data validation or saving fails (such as the name of the role or permission is not unique)

rbac\Item $data

$data public property The additional data associated with this item public mixed $data = null

rbac\Item $name

$name public property The name of the item. This must be globally unique. public string $name = null

rbac\Item $ruleName

$ruleName public property Name of the rule associated with this item public string $ruleName = null

rbac\Item $description

$description public property The item description public string $description = null