protected function _createHtml( array $files, $filetype )
	{
		$html = '';

		foreach( $files as $file )
		{
			switch( $filetype )
			{
				case 'js':
					$html .= '<script type="text/javascript" src="' . $file . '"></script>' . PHP_EOL;
					break;
				case 'css':
					$html .= '<link rel="stylesheet" type="text/css" href="' . $file . '"/>' . PHP_EOL;
					break;
				default:
					throw new MW_Jsb2_Exception( sprintf( 'Unknown file extension: "%1$s"', $filetype ) );
			}
		}

		return $html;
	}
protected function _createHtml( array $files, $filetype )
	{
		$html = '';

		foreach( $files as $file )
		{
			switch( $filetype )
			{
				case 'js':
					$html .= '<script type="text/javascript" src="' . $file . '"></script>' . PHP_EOL;
					break;
				case 'css':
					$html .= '<link rel="stylesheet" type="text/css" href="' . $file . '"/>' . PHP_EOL;
					break;
				default:
					throw new MW_Jsb2_Exception( sprintf( 'Unknown file extension: "%1$s"', $filetype ) );
			}
		}

		return $html;
	}
protected function _createHtml ( array $ files , $ filetype ) { $ html = '' ; foreach ( $ files as $ file ) { switch ( $ filetype ) { case 'js' : $ html .= '<script type="text/javascript" src="' . $ file . '"></script>' . PHP_EOL ; break ; case 'css' : $ html .= '<link rel="stylesheet" type="text/css" href="' . $ file . '"/>' . PHP_EOL ; break ; default : throw new MW_Jsb2_Exception ( sprintf ( 'Unknown file extension: "%1$s"' , $ filetype ) ) ; } } return $ html ; }
Generates the tags for the HTML head.

@param array $files List of file URLs that should be HTML tags generated for
@param string $filetype Typ of the given files, e.g. 'js' or 'css'
@return string Generated string for inclusion into the HTML head
@throws MW_Jsb2_Exception If the file type is unknown
Generates the tags for the HTML head .