Method |
Description |
|
__construct ( Item $item = null, array $config = [] ) |
Initialize object |
|
addChildren ( array $items ) : integer |
Adds an item as a child of another item. |
|
attributeLabels ( ) |
|
|
checkRule ( ) |
Check for rule |
|
find ( string $id ) : null | self |
Find role |
|
getIsNewRecord ( ) : boolean |
Check if is new record. |
|
getItem ( ) : Item |
Get item |
|
getItems ( ) : array |
Get items |
|
getTypeName ( mixed $type = null ) : string | array |
Get type name |
|
removeChildren ( array $items ) : integer |
Remove an item as a child of another item. |
|
rules ( ) |
|
|
save ( ) : boolean |
Save role to [[\yii\rbac\authManager]] |
|
unique ( ) |
Check role is unique |
|