src/UI/HTML/Ladder.php
public function buildHtml()
	{
		$list	= array();
		$divs	= array();
		foreach( $this->steps as $nr => $step )
		{
			$id		= $this->id."_link".$nr;
			$list[]	= UI_HTML_Elements::ListItem( $step['label'], 0, array( 'id' => $id ) );
			$id		= $this->id."_".$nr;
			$divs[] = UI_HTML_Tag::create( 'div', $step['content'], array( 'id' => $id ) );
		}
		$list	= UI_HTML_Elements::unorderedList( $list );
		$divs	= implode( "\n", $divs );
		$div	= UI_HTML_Tag::create( 'div', "\n".$list.$divs."\n", array( 'id' => $this->id ) );
		return $div;
	}
public function buildHtml()
	{
		$list	= array();
		$divs	= array();
		foreach( $this->steps as $nr => $step )
		{
			$id		= $this->id."_link".$nr;
			$list[]	= UI_HTML_Elements::ListItem( $step['label'], 0, array( 'id' => $id ) );
			$id		= $this->id."_".$nr;
			$divs[] = UI_HTML_Tag::create( 'div', $step['content'], array( 'id' => $id ) );
		}
		$list	= UI_HTML_Elements::unorderedList( $list );
		$divs	= implode( "\n", $divs );
		$div	= UI_HTML_Tag::create( 'div', "\n".$list.$divs."\n", array( 'id' => $this->id ) );
		return $div;
	}
public function buildHtml ( ) { $ list = array ( ) ; $ divs = array ( ) ; foreach ( $ this -> steps as $ nr => $ step ) { $ id = $ this -> id . "_link" . $ nr ; $ list [ ] = UI_HTML_Elements :: ListItem ( $ step [ 'label' ] , 0 , array ( 'id' => $ id ) ) ; $ id = $ this -> id . "_" . $ nr ; $ divs [ ] = UI_HTML_Tag :: create ( 'div' , $ step [ 'content' ] , array ( 'id' => $ id ) ) ; } $ list = UI_HTML_Elements :: unorderedList ( $ list ) ; $ divs = implode ( "\n" , $ divs ) ; $ div = UI_HTML_Tag :: create ( 'div' , "\n" . $ list . $ divs . "\n" , array ( 'id' => $ this -> id ) ) ; return $ div ; }
Builds and returns HTML Code of Ladder.
@access		public
@return		string
Builds and returns HTML Code of Ladder .