components/AuthBehavior.php
public function hasChild($itemName, $childName)
    {
        $children = $this->getChildren($itemName);
        if (in_array($childName, $children)) {
            return true;
        }
        return false;
    }
public function hasChild($itemName, $childName)
    {
        $children = $this->getChildren($itemName);
        if (in_array($childName, $children)) {
            return true;
        }
        return false;
    }
public function hasChild ( $ itemName , $ childName ) { $ children = $ this -> getChildren ( $ itemName ) ; if ( in_array ( $ childName , $ children ) ) { return true ; } return false ; }
Returns whether the given item has a specific child.
@param string $itemName name of the item.
@param string $childName name of the child.
@return boolean the result.
Returns whether the given item has a specific child .