rbac\ManagerInterface update()

update() public abstract method

Updates the specified role, permission or rule in the system.

public abstract boolean update ( $name, $object )
$name string

The old name of the role, permission or rule

$object yii\rbac\Role|yii\rbac\Permission|yii\rbac\Rule
return boolean

Whether the update is successful

throws Exception

if data validation or saving fails (such as the name of the role or permission is not unique)

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

Please login to continue.