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

rbac\DbManager updateRule()

updateRule() protected method Updates a rule to the RBAC system. protected boolean updateRule ( $name, $rule )$name string The name of the rule being updated $rule yii\rbac\Rule The updated rule return boolean Whether the rule is successfully updated throws Exception if data validation or saving fails (such as the name of the rule is not unique)

rbac\Item $createdAt

$createdAt public property UNIX timestamp representing the item creation time public integer $createdAt = null

rbac\DbManager updateItem()

updateItem() protected method Updates an auth item in the RBAC system. protected boolean updateItem ( $name, $item )$name string The name of the item being updated $item yii\rbac\Item The updated item return boolean Whether the auth item is successfully updated throws Exception if data validation or saving fails (such as the name of the role or permission is not unique)

rbac\DbManager supportsCascadeUpdate()

supportsCascadeUpdate() protected method Returns a value indicating whether the database supports cascading update and delete. The default implementation will return false for SQLite database and true for all other databases. protected boolean supportsCascadeUpdate ( )return boolean Whether the database supports cascading update and delete.

rbac\DbManager revoke()

revoke() public method Revokes a role from a user. public 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\DbManager revokeAll()

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

rbac\DbManager removeChildren()

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

rbac\DbManager removeRule()

removeRule() protected method Removes a rule from the RBAC system. protected boolean removeRule ( $rule )$rule yii\rbac\Rule The rule to remove return boolean Whether the rule is successfully removed throws Exception if data validation or saving fails (such as the name of the rule is not unique)