public static function getCurrent($navigation, $current) {
        self::iterateItems($navigation);
        foreach(self::$navItem as $item) {
            if($item === $current) {
                self::getCurrentItem(intval(floor(self::$navItem->getDepth() / 2)));
            }
        }
        ksort(self::$currentItems);
        return self::$currentItems;
    }
public static function getCurrent($navigation, $current) {
        self::iterateItems($navigation);
        foreach(self::$navItem as $item) {
            if($item === $current) {
                self::getCurrentItem(intval(floor(self::$navItem->getDepth() / 2)));
            }
        }
        ksort(self::$currentItems);
        return self::$currentItems;
    }
public static function getCurrent ( $ navigation , $ current ) { self :: iterateItems ( $ navigation ) ; foreach ( self :: $ navItem as $ item ) { if ( $ item === $ current ) { self :: getCurrentItem ( intval ( floor ( self :: $ navItem -> getDepth ( ) / 2 ) ) ) ; } } ksort ( self :: $ currentItems ) ; return self :: $ currentItems ; }
Creates the current menu items which are selected from the navigation item hierarchy
Creates the current menu items which are selected from the navigation item hierarchy