src/UI/HTML/CSS/TreeMenu.php
protected static function buildItemWithChildren( ADT_Tree_Menu_Item &$node, $level, $contentDrop = NULL )
	{
		$contentDrop	= $contentDrop !== NULL ? $contentDrop : self::$contentDropDefault;
		$children		= "";
		$label			= self::buildLabelSpan( $node->label, $level, $node->class, $node->disabled, $node->url );
		if( $node->hasChildren() )
		{
			$children	= array();
			foreach( $node->getChildren() as $child )
				$children[]	= self::buildItemWithChildren( $child, $level + 1, $contentDrop );
			$classList	= $node->getAttribute( 'classList' );
			$attributes	= array( 'class' => $classList );
			$children	= "\n".UI_HTML_Elements::unorderedList( $children, $level + 1, $attributes );
			$children	.= '<!--[if lte IE 6]></td></tr></table></a><![endif]-->';
			$drop		= $level > 1 ? $contentDrop : "&nbsp;";
			$label		= '<span class="drop">'.$label.$drop.'</span><!--[if gt IE 6]><!-->';
		}
		$classLink	= $node->getAttribute( 'classLink' )." level-".$level;
		$classItem	= $node->getAttribute( 'classItem' )." level-".$level;
		$labelLink	= $label;
		if( $node->url && !$node->getAttribute( 'disabled' ) )
			$labelLink	= UI_HTML_Elements::Link( $node->url, $label, $classLink );
		if( $node->hasChildren() )
			$labelLink	.= '<!--<![endif]--><!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
		$attributes	= array( 'class' => $classItem );
		if( $node->getAttribute( 'disabled' ) )
			$attributes['class']	.= " disabled";
		return UI_HTML_Elements::ListItem( $labelLink.$children, $level, $attributes );
	}
protected static function buildItemWithChildren( ADT_Tree_Menu_Item &$node, $level, $contentDrop = NULL )
	{
		$contentDrop	= $contentDrop !== NULL ? $contentDrop : self::$contentDropDefault;
		$children		= "";
		$label			= self::buildLabelSpan( $node->label, $level, $node->class, $node->disabled, $node->url );
		if( $node->hasChildren() )
		{
			$children	= array();
			foreach( $node->getChildren() as $child )
				$children[]	= self::buildItemWithChildren( $child, $level + 1, $contentDrop );
			$classList	= $node->getAttribute( 'classList' );
			$attributes	= array( 'class' => $classList );
			$children	= "\n".UI_HTML_Elements::unorderedList( $children, $level + 1, $attributes );
			$children	.= '<!--[if lte IE 6]></td></tr></table></a><![endif]-->';
			$drop		= $level > 1 ? $contentDrop : "&nbsp;";
			$label		= '<span class="drop">'.$label.$drop.'</span><!--[if gt IE 6]><!-->';
		}
		$classLink	= $node->getAttribute( 'classLink' )." level-".$level;
		$classItem	= $node->getAttribute( 'classItem' )." level-".$level;
		$labelLink	= $label;
		if( $node->url && !$node->getAttribute( 'disabled' ) )
			$labelLink	= UI_HTML_Elements::Link( $node->url, $label, $classLink );
		if( $node->hasChildren() )
			$labelLink	.= '<!--<![endif]--><!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
		$attributes	= array( 'class' => $classItem );
		if( $node->getAttribute( 'disabled' ) )
			$attributes['class']	.= " disabled";
		return UI_HTML_Elements::ListItem( $labelLink.$children, $level, $attributes );
	}
protected static function buildItemWithChildren ( ADT_Tree_Menu_Item & $ node , $ level , $ contentDrop = NULL ) { $ contentDrop = $ contentDrop !== NULL ? $ contentDrop : self :: $ contentDropDefault ; $ children = "" ; $ label = self :: buildLabelSpan ( $ node -> label , $ level , $ node -> class , $ node -> disabled , $ node -> url ) ; if ( $ node -> hasChildren ( ) ) { $ children = array ( ) ; foreach ( $ node -> getChildren ( ) as $ child ) $ children [ ] = self :: buildItemWithChildren ( $ child , $ level + 1 , $ contentDrop ) ; $ classList = $ node -> getAttribute ( 'classList' ) ; $ attributes = array ( 'class' => $ classList ) ; $ children = "\n" . UI_HTML_Elements :: unorderedList ( $ children , $ level + 1 , $ attributes ) ; $ children .= '<!--[if lte IE 6]></td></tr></table></a><![endif]-->' ; $ drop = $ level > 1 ? $ contentDrop : "&nbsp;" ; $ label = '<span class="drop">' . $ label . $ drop . '</span><!--[if gt IE 6]><!-->' ; } $ classLink = $ node -> getAttribute ( 'classLink' ) . " level-" . $ level ; $ classItem = $ node -> getAttribute ( 'classItem' ) . " level-" . $ level ; $ labelLink = $ label ; if ( $ node -> url && ! $ node -> getAttribute ( 'disabled' ) ) $ labelLink = UI_HTML_Elements :: Link ( $ node -> url , $ label , $ classLink ) ; if ( $ node -> hasChildren ( ) ) $ labelLink .= '<!--<![endif]--><!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->' ; $ attributes = array ( 'class' => $ classItem ) ; if ( $ node -> getAttribute ( 'disabled' ) ) $ attributes [ 'class' ] .= " disabled" ; return UI_HTML_Elements :: ListItem ( $ labelLink . $ children , $ level , $ attributes ) ; }
Builds HTML of a List Item with its nested Tree Menu Items statically.
@access		protected
@static
@param		ADT_Tree_Menu_Item	$node				Tree Menu Item
@param		string				$contentDrop		Indicator HTML Code for Items containing further Items
@return		string
Builds HTML of a List Item with its nested Tree Menu Items statically .