rbac\DbManager $itemTable

$itemTable public property The name of the table storing authorization items. Defaults to "auth_item". public string $itemTable = '{{%auth_item}}'

rbac\DbManager $rules

$rules protected read-only property All auth rules (name => Rule) public yii\rbac\Rule[] getRules ( )

rbac\DbManager $db

$db public property The DB connection object or the application component ID of the DB connection. After the DbManager object is created, if you want to change this property, you should only assign it with a DB connection object. Starting from version 2.0.2, this can also be a configuration array for creating the object. public yii\db\Connection|array|string $db = 'db'

rbac\DbManager $items

$items protected property All auth items (name => Item) protected yii\rbac\Item[] $items = null

rbac\DbManager $itemChildTable

$itemChildTable public property The name of the table storing authorization item hierarchy. Defaults to "auth_item_child". public string $itemChildTable = '{{%auth_item_child}}'

rbac\DbManager $cacheKey

$cacheKey public property (available since version 2.0.3) The key used to store RBAC data in cache See also $cache. public string $cacheKey = 'rbac'

rbac\DbManager $cache

$cache public property (available since version 2.0.3) The cache used to improve RBAC performance. This can be one of the following: an application component ID (e.g. cache) a configuration array a yii\caching\Cache object When this is not set, it means caching is not enabled. Note that by enabling RBAC cache, all auth items, rules and auth item parent-child relationships will be cached and loaded into memory. This will improve the performance of RBAC permission check. However, it does requ

rbac\DbManager $assignmentTable

$assignmentTable public property The name of the table storing authorization item assignments. Defaults to "auth_assignment". public string $assignmentTable = '{{%auth_assignment}}'

rbac\CheckAccessInterface checkAccess()

checkAccess() public abstract method Checks if the user has the specified permission. public abstract boolean checkAccess ( $userId, $permissionName, $params = [] )$userId string|integer The user ID. This should be either an integer or a string representing the unique identifier of a user. See yii\web\User::$id. $permissionName string The name of the permission to be checked against $params array Name-value pairs that will be passed to the rules associated with the roles and permis

rbac\BaseManager updateItem()

updateItem() protected abstract method Updates an auth item in the RBAC system. protected abstract 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)