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