protected static function getCurrentItem($depth){
        self::$currentItems[$depth] = iterator_to_array(self::$navItem->getSubIterator((($depth * 2) + 1)));
        unset(self::$currentItems[$depth]['children']);
        if($depth >= 1){
            self::getCurrentItem(($depth - 1));
        }
    }
protected static function getCurrentItem($depth){
        self::$currentItems[$depth] = iterator_to_array(self::$navItem->getSubIterator((($depth * 2) + 1)));
        unset(self::$currentItems[$depth]['children']);
        if($depth >= 1){
            self::getCurrentItem(($depth - 1));
        }
    }
protected static function getCurrentItem ( $ depth ) { self :: $ currentItems [ $ depth ] = iterator_to_array ( self :: $ navItem -> getSubIterator ( ( ( $ depth * 2 ) + 1 ) ) ) ; unset ( self :: $ currentItems [ $ depth ] [ 'children' ] ) ; if ( $ depth >= 1 ) { self :: getCurrentItem ( ( $ depth - 1 ) ) ; } }
Gets the current level items from the menu array
@param int $depth This should be the depth of the menu item you are setting
Gets the current level items from the menu array