rbac\ManagerInterface createRole()

createRole() public abstract method

Creates a new Role object.

Note that the newly created role is not added to the RBAC system yet. You must fill in the needed data and call add() to add it to the system.

public abstract yii\rbac\Role createRole ( $name )
$name string

The role name

return yii\rbac\Role

The new Role object

doc_Yii
2016-10-30 17:10:10
Comments
Leave a Comment

Please login to continue.