private function getChildren($parentID)
    {
        $tmp = [];
        $count = 0;
        foreach($this->existingMenuLinks as $key => $menuLink){
            if ($menuLink['parent'] == $parentID) {
                $tmp[$count] = $menuLink;
                $count++;
            }
        }
        return $tmp;
    }
private function getChildren($parentID)
    {
        $tmp = [];
        $count = 0;
        foreach($this->existingMenuLinks as $key => $menuLink){
            if ($menuLink['parent'] == $parentID) {
                $tmp[$count] = $menuLink;
                $count++;
            }
        }
        return $tmp;
    }
private function getChildren ( $ parentID ) { $ tmp = [ ] ; $ count = 0 ; foreach ( $ this -> existingMenuLinks as $ key => $ menuLink ) { if ( $ menuLink [ 'parent' ] == $ parentID ) { $ tmp [ $ count ] = $ menuLink ; $ count ++ ; } } return $ tmp ; }
Get all children of a menu link.

@param  int $parentID
@return array
Get all children of a menu link .