src/UI/HTML/Exception/Trace.php
public static function renderFromTrace( $trace )
	{
		if( !is_array( $trace ) )
			throw new InvalidArgumentException( "Trace must be an array" );
		if( !count( $trace ) )
			return '';
		$i	= 0;
		$j	= 0;
		$list	= array();
		foreach( $trace as $key => $trace )
		{
			$step	= self::renderTraceStep( $trace, $i++, $j );
			if( !$step )
				continue;
			$list[]	= UI_HTML_Tag::create( 'li', $step );
			$j++;
		}
		return UI_HTML_Tag::create( 'ol', implode( $list ), array( 'class' => 'trace' ) );
	}
public static function renderFromTrace( $trace )
	{
		if( !is_array( $trace ) )
			throw new InvalidArgumentException( "Trace must be an array" );
		if( !count( $trace ) )
			return '';
		$i	= 0;
		$j	= 0;
		$list	= array();
		foreach( $trace as $key => $trace )
		{
			$step	= self::renderTraceStep( $trace, $i++, $j );
			if( !$step )
				continue;
			$list[]	= UI_HTML_Tag::create( 'li', $step );
			$j++;
		}
		return UI_HTML_Tag::create( 'ol', implode( $list ), array( 'class' => 'trace' ) );
	}
public static function renderFromTrace ( $ trace ) { if ( ! is_array ( $ trace ) ) throw new InvalidArgumentException ( "Trace must be an array" ) ; if ( ! count ( $ trace ) ) return '' ; $ i = 0 ; $ j = 0 ; $ list = array ( ) ; foreach ( $ trace as $ key => $ trace ) { $ step = self :: renderTraceStep ( $ trace , $ i ++ , $ j ) ; if ( ! $ step ) continue ; $ list [ ] = UI_HTML_Tag :: create ( 'li' , $ step ) ; $ j ++ ; } return UI_HTML_Tag :: create ( 'ol' , implode ( $ list ) , array ( 'class' => 'trace' ) ) ; }
Renders exception trace HTML code from exception trace array.
@access		public
@param		array		$trace			Trace of exception
@return		string
Renders exception trace HTML code from exception trace array .