rbac\ManagerInterface createPermission()

createPermission() public abstract method

Creates a new Permission object.

Note that the newly created permission 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\Permission createPermission ( $name )
$name string

The permission name

return yii\rbac\Permission

The new Permission object

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

Please login to continue.