mongodb\rbac\MongoDbManager removeAllRules()

removeAllRules() public method Removes all rules. All roles and permissions which have rules will be adjusted accordingly. public void removeAllRules ( )

mongodb\rbac\MongoDbManager removeAllRoles()

removeAllRoles() public method Removes all roles. All parent child relations will be adjusted accordingly. public void removeAllRoles ( )

mongodb\rbac\MongoDbManager removeAllPermissions()

removeAllPermissions() public method Removes all permissions. All parent child relations will be adjusted accordingly. public void removeAllPermissions ( )

mongodb\rbac\MongoDbManager removeAllItems()

removeAllItems() protected method Removes all auth items of the specified type. protected void removeAllItems ( $type )$type integer The auth item type (either Item::TYPE_PERMISSION or Item::TYPE_ROLE)

mongodb\rbac\MongoDbManager removeAllAssignments()

removeAllAssignments() public method Removes all role assignments. public void removeAllAssignments ( )

mongodb\rbac\MongoDbManager removeAll()

removeAll() public method Removes all authorization data, including roles, permissions, rules, and assignments. public void removeAll ( )

mongodb\rbac\MongoDbManager populateItem()

populateItem() protected method Populates an auth item with the data fetched from collection protected yii\rbac\Item populateItem ( $row )$row array The data from the auth item collection return yii\rbac\Item The populated auth item instance (either Role or Permission)

mongodb\rbac\MongoDbManager loadFromCache()

loadFromCache() public method Loads data from cache public void loadFromCache ( )

mongodb\rbac\MongoDbManager invalidateCache()

invalidateCache() public method Invalidates RBAC related cache public void invalidateCache ( )

mongodb\rbac\MongoDbManager init()

init() public method Initializes the application component. This method overrides the parent implementation by establishing the MongoDB connection. public void init ( )