protected function renderChildren(Descriptor $descriptor) {
		$counter = 1;
		$parts   = [];
		$total   = $descriptor->getChildrenNumber();
		
		$tagsLocator = $this->getTagsLocator();
		$linkUp      = $tagsLocator->linkUp->render();
		$linkDown    = $tagsLocator->linkDown->render();
		$wrapper     = $tagsLocator->wrapper;
		
		foreach ($descriptor as $linkTitle => $child) {
			$element = $this->renderChildElement($child, $linkTitle);
			
			if ($counter > 1) {
				$element .= $linkUp;
			}
			
			if ($counter < $total) {
				$element .= $linkDown;
			}
			
			if ($total > 1) {
				$element = $wrapper->render($element);
			}
			
			$parts[] = $element;
			
			++ $counter;
		}
		
		return $wrapper->render(implode('<br>', $parts));
	}
protected function renderChildren(Descriptor $descriptor) {
		$counter = 1;
		$parts   = [];
		$total   = $descriptor->getChildrenNumber();
		
		$tagsLocator = $this->getTagsLocator();
		$linkUp      = $tagsLocator->linkUp->render();
		$linkDown    = $tagsLocator->linkDown->render();
		$wrapper     = $tagsLocator->wrapper;
		
		foreach ($descriptor as $linkTitle => $child) {
			$element = $this->renderChildElement($child, $linkTitle);
			
			if ($counter > 1) {
				$element .= $linkUp;
			}
			
			if ($counter < $total) {
				$element .= $linkDown;
			}
			
			if ($total > 1) {
				$element = $wrapper->render($element);
			}
			
			$parts[] = $element;
			
			++ $counter;
		}
		
		return $wrapper->render(implode('<br>', $parts));
	}
protected function renderChildren ( Descriptor $ descriptor ) { $ counter = 1 ; $ parts = [ ] ; $ total = $ descriptor -> getChildrenNumber ( ) ; $ tagsLocator = $ this -> getTagsLocator ( ) ; $ linkUp = $ tagsLocator -> linkUp -> render ( ) ; $ linkDown = $ tagsLocator -> linkDown -> render ( ) ; $ wrapper = $ tagsLocator -> wrapper ; foreach ( $ descriptor as $ linkTitle => $ child ) { $ element = $ this -> renderChildElement ( $ child , $ linkTitle ) ; if ( $ counter > 1 ) { $ element .= $ linkUp ; } if ( $ counter < $ total ) { $ element .= $ linkDown ; } if ( $ total > 1 ) { $ element = $ wrapper -> render ( $ element ) ; } $ parts [ ] = $ element ; ++ $ counter ; } return $ wrapper -> render ( implode ( '<br>' , $ parts ) ) ; }
Render the element's children

@param  Descriptor $descriptor
@return string
Render the element s children