components/AuthBehavior.php
public function hasDescendant($itemName, $descendantName)
    {
        $descendants = $this->getDescendants($itemName);
        return isset($descendants[$descendantName]);
    }
public function hasDescendant($itemName, $descendantName)
    {
        $descendants = $this->getDescendants($itemName);
        return isset($descendants[$descendantName]);
    }
public function hasDescendant ( $ itemName , $ descendantName ) { $ descendants = $ this -> getDescendants ( $ itemName ) ; return isset ( $ descendants [ $ descendantName ] ) ; }
Returns whether the given item has a specific descendant.
@param string $itemName name of the item.
@param string $descendantName name of the descendant.
@return boolean the result.
Returns whether the given item has a specific descendant .