rbac\DbManager $parents

$parents protected property Auth item parent-child relationships (childName => list of parents) protected array $parents = null

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 $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 $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 $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 updateRule()

updateRule() protected abstract method Updates a rule to the RBAC system. protected abstract 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)