rbac\PhpManager addChild()

addChild() public method

Adds an item as a child of another item.

public boolean addChild ( $parent, $child )
$parent yii\rbac\Item
$child yii\rbac\Item
return boolean

Whether the child successfully added

throws yii\base\Exception

if the parent-child relationship already exists or if a loop has been detected.

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

Please login to continue.