public static function build($array, $elements = [], $currentItems = [], $activeClass = 'active', $startLevel = 0, $numLevels = 2, $caret = false, $linkDDExtras = false) {
        if(is_array($elements) && !empty($elements)){Link::$linkDefaults = $elements;}
        if($caret !== false && is_string($caret)){Link::$caretElement = $caret;}
        if($linkDDExtras !== false && is_string($linkDDExtras)){Link::$dropdownLinkExtras = $linkDDExtras;}
        return self::createMenuLevel($array, 0, $elements, $currentItems, $activeClass, $startLevel, $numLevels);
    }
public static function build($array, $elements = [], $currentItems = [], $activeClass = 'active', $startLevel = 0, $numLevels = 2, $caret = false, $linkDDExtras = false) {
        if(is_array($elements) && !empty($elements)){Link::$linkDefaults = $elements;}
        if($caret !== false && is_string($caret)){Link::$caretElement = $caret;}
        if($linkDDExtras !== false && is_string($linkDDExtras)){Link::$dropdownLinkExtras = $linkDDExtras;}
        return self::createMenuLevel($array, 0, $elements, $currentItems, $activeClass, $startLevel, $numLevels);
    }
public static function build ( $ array , $ elements = [ ] , $ currentItems = [ ] , $ activeClass = 'active' , $ startLevel = 0 , $ numLevels = 2 , $ caret = false , $ linkDDExtras = false ) { if ( is_array ( $ elements ) && ! empty ( $ elements ) ) { Link :: $ linkDefaults = $ elements ; } if ( $ caret !== false && is_string ( $ caret ) ) { Link :: $ caretElement = $ caret ; } if ( $ linkDDExtras !== false && is_string ( $ linkDDExtras ) ) { Link :: $ dropdownLinkExtras = $ linkDDExtras ; } return self :: createMenuLevel ( $ array , 0 , $ elements , $ currentItems , $ activeClass , $ startLevel , $ numLevels ) ; }
Build the navigation menu item
@param array $array This should be an array of the menu items
@param array $elements This should be an array containing any attributes to add to the main UL element
@return string Returns the HTML menu string
Build the navigation menu item