src/Rendering/HTMLRendering.php
public static function renderReport($report, $domain, $type, $stream) {
		$report = nl2br($report);
		$rendering = new static();
		if( $rendering->existsLayoutPath('report-'.$type) ) {
			return $rendering->render('report-'.$type, array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream));
		}
		if( $rendering->existsLayoutPath('report') ) {
			return $rendering->render('report', array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream));
		}
// 		if( file_exists(static::getLayoutPath('report-'.$type)) ) {
// 			return static::doRender('report-'.$type, array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream));
// 		}
// 		if( file_exists(static::getLayoutPath('report')) ) {
// 			return static::doRender('report', array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream));
// 		}
		return '
		<div class="report report_'.$stream.' '.$type.' '.$domain.'">'.nl2br($report).'</div>';
	}
public static function renderReport($report, $domain, $type, $stream) {
		$report = nl2br($report);
		$rendering = new static();
		if( $rendering->existsLayoutPath('report-'.$type) ) {
			return $rendering->render('report-'.$type, array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream));
		}
		if( $rendering->existsLayoutPath('report') ) {
			return $rendering->render('report', array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream));
		}
// 		if( file_exists(static::getLayoutPath('report-'.$type)) ) {
// 			return static::doRender('report-'.$type, array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream));
// 		}
// 		if( file_exists(static::getLayoutPath('report')) ) {
// 			return static::doRender('report', array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream));
// 		}
		return '
		<div class="report report_'.$stream.' '.$type.' '.$domain.'">'.nl2br($report).'</div>';
	}
public static function renderReport ( $ report , $ domain , $ type , $ stream ) { $ report = nl2br ( $ report ) ; $ rendering = new static ( ) ; if ( $ rendering -> existsLayoutPath ( 'report-' . $ type ) ) { return $ rendering -> render ( 'report-' . $ type , array ( 'Report' => $ report , 'Domain' => $ domain , 'Type' => $ type , 'Stream' => $ stream ) ) ; } if ( $ rendering -> existsLayoutPath ( 'report' ) ) { return $ rendering -> render ( 'report' , array ( 'Report' => $ report , 'Domain' => $ domain , 'Type' => $ type , 'Stream' => $ stream ) ) ; } // 		if( file_exists(static::getLayoutPath('report-'.$type)) ) { // 			return static::doRender('report-'.$type, array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream)); // 		} // 		if( file_exists(static::getLayoutPath('report')) ) { // 			return static::doRender('report', array('Report'=>$report, 'Domain'=>$domain, 'Type'=>$type, 'Stream'=>$stream)); // 		} return '
		<div class="report report_' . $ stream . ' ' . $ type . ' ' . $ domain . '">' . nl2br ( $ report ) . '</div>' ; }
Render the given report as HTML

@param string $report
@param string $domain
@param string $type
@param string $stream
@return string
Render the given report as HTML