detectLoop() protected method
Checks whether there is a loop in the authorization item hierarchy.
protected boolean detectLoop ( $parent, $child ) | ||
---|---|---|
$parent | yii\rbac\Item |
The parent item |
$child | yii\rbac\Item |
The child item to be added to the hierarchy |
return | boolean |
Whether a loop exists |
Please login to continue.