rbac\Item $description

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

rbac\Item $data

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

rbac\Item $createdAt

$createdAt public property UNIX timestamp representing the item creation time public integer $createdAt = 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\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 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 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 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)

rbac\DbManager removeItem()

removeItem() protected method Removes an auth item from the RBAC system. protected boolean removeItem ( $item )$item yii\rbac\Item The item to remove return boolean Whether the role or permission is successfully removed throws Exception if data validation or saving fails (such as the name of the role or permission is not unique)