rbac\PhpManager detectLoop()

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

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

Please login to continue.