Class dektrium\rbac\components\DbManager

Inheritancedektrium\rbac\components\DbManager » yii\rbac\DbManager

This Auth manager changes visibility and signature of some methods from \yii\rbac\DbManager.

Method Details

getItem() public method

public mixed getItem ( $name )
$name string
getItems() public method

public array getItems ( $type null, $excludeItems = [] )
$type int|null

If null will return all auth items.

$excludeItems array

Items that should be excluded from result array.

getItemsByUser() public method

Returns both roles and permissions assigned to user.

public array getItemsByUser ( $userId )
$userId integer