src/UI/HTML/CSS/TreeMenu.php
protected static function buildItemWithChildrenFromArray( &$node, $level, $contentDrop = NULL )
	{
		$contentDrop	= $contentDrop !== NULL ? $contentDrop : self::$contentDropDefault;
		$children	= "";
		$class		= isset( $node['class'] ) ? $node['class'] : 'option';
		$disabled	= isset( $node['disabled'] ) ? $node['disabled'] : FALSE;
		$label		= self::buildLabelSpan( $node['label'], $level, $class, $disabled, $node['url'] );
		if( isset( $node['children'] ) && $node['children'] )
		{
			$children	= array();
			foreach( $node['children'] as $child )
				$children[]	= self::buildItemWithChildrenFromArray( $child, $level + 1 );
			$classList	= isset( $node['classList'] ) ? $node['classList'] : NULL;
			$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	= isset( $node['classLink'] ) ? $node['classLink']." level-".$level : NULL;
		$classItem	= isset( $node['classItem'] ) ? $node['classItem']." level-".$level : NULL;
		$labelLink	= UI_HTML_Elements::Link( $node['url'], $label, $classLink );
		if( isset( $node['children'] ) && $node['children'] )
			$labelLink	.= '<!--<![endif]--><!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
		$attributes	= array( 'class' => $classItem );
		return UI_HTML_Elements::ListItem( $labelLink.$children, $level, $attributes );
	}
protected static function buildItemWithChildrenFromArray( &$node, $level, $contentDrop = NULL )
	{
		$contentDrop	= $contentDrop !== NULL ? $contentDrop : self::$contentDropDefault;
		$children	= "";
		$class		= isset( $node['class'] ) ? $node['class'] : 'option';
		$disabled	= isset( $node['disabled'] ) ? $node['disabled'] : FALSE;
		$label		= self::buildLabelSpan( $node['label'], $level, $class, $disabled, $node['url'] );
		if( isset( $node['children'] ) && $node['children'] )
		{
			$children	= array();
			foreach( $node['children'] as $child )
				$children[]	= self::buildItemWithChildrenFromArray( $child, $level + 1 );
			$classList	= isset( $node['classList'] ) ? $node['classList'] : NULL;
			$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	= isset( $node['classLink'] ) ? $node['classLink']." level-".$level : NULL;
		$classItem	= isset( $node['classItem'] ) ? $node['classItem']." level-".$level : NULL;
		$labelLink	= UI_HTML_Elements::Link( $node['url'], $label, $classLink );
		if( isset( $node['children'] ) && $node['children'] )
			$labelLink	.= '<!--<![endif]--><!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->';
		$attributes	= array( 'class' => $classItem );
		return UI_HTML_Elements::ListItem( $labelLink.$children, $level, $attributes );
	}
protected static function buildItemWithChildrenFromArray ( & $ node , $ level , $ contentDrop = NULL ) { $ contentDrop = $ contentDrop !== NULL ? $ contentDrop : self :: $ contentDropDefault ; $ children = "" ; $ class = isset ( $ node [ 'class' ] ) ? $ node [ 'class' ] : 'option' ; $ disabled = isset ( $ node [ 'disabled' ] ) ? $ node [ 'disabled' ] : FALSE ; $ label = self :: buildLabelSpan ( $ node [ 'label' ] , $ level , $ class , $ disabled , $ node [ 'url' ] ) ; if ( isset ( $ node [ 'children' ] ) && $ node [ 'children' ] ) { $ children = array ( ) ; foreach ( $ node [ 'children' ] as $ child ) $ children [ ] = self :: buildItemWithChildrenFromArray ( $ child , $ level + 1 ) ; $ classList = isset ( $ node [ 'classList' ] ) ? $ node [ 'classList' ] : NULL ; $ 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 = isset ( $ node [ 'classLink' ] ) ? $ node [ 'classLink' ] . " level-" . $ level : NULL ; $ classItem = isset ( $ node [ 'classItem' ] ) ? $ node [ 'classItem' ] . " level-" . $ level : NULL ; $ labelLink = UI_HTML_Elements :: Link ( $ node [ 'url' ] , $ label , $ classLink ) ; if ( isset ( $ node [ 'children' ] ) && $ node [ 'children' ] ) $ labelLink .= '<!--<![endif]--><!--[if lt IE 7]><table border="0" cellpadding="0" cellspacing="0"><tr><td><![endif]-->' ; $ attributes = array ( 'class' => $ classItem ) ; return UI_HTML_Elements :: ListItem ( $ labelLink . $ children , $ level , $ attributes ) ; }
Builds HTML of a List Item with its nested Tree Menu Items from Data Array statically.
@access		protected
@static
@param		array				$node				Data Array of 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 from Data Array statically .