addChild() public abstract method
Adds an item as a child of another item.
public abstract 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. |
Please login to continue.