rbac\BaseManager update()

update() public method

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

public 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:09:47
Comments
Leave a Comment

Please login to continue.