src/UI/HTML/CountryFlagIcon.php
public static function build( $languageCode, $title = NULL, $class = NULL )
	{
		if( !$languageCode )
			throw new InvalidArgumentException( 'No country language code given' );
		$languageCode	= self::transformCode( $languageCode );
		$url			= self::$imageBaseUri.$languageCode.".".self::$imageExtension;
		$code			= UI_HTML_Elements::Image( $url, $title, $class );
		return $code;
	}
public static function build( $languageCode, $title = NULL, $class = NULL )
	{
		if( !$languageCode )
			throw new InvalidArgumentException( 'No country language code given' );
		$languageCode	= self::transformCode( $languageCode );
		$url			= self::$imageBaseUri.$languageCode.".".self::$imageExtension;
		$code			= UI_HTML_Elements::Image( $url, $title, $class );
		return $code;
	}
public static function build ( $ languageCode , $ title = NULL , $ class = NULL ) { if ( ! $ languageCode ) throw new InvalidArgumentException ( 'No country language code given' ) ; $ languageCode = self :: transformCode ( $ languageCode ) ; $ url = self :: $ imageBaseUri . $ languageCode . "." . self :: $ imageExtension ; $ code = UI_HTML_Elements :: Image ( $ url , $ title , $ class ) ; return $ code ; }
Builds HTML Code of Country Flag Icon statically.
@access		public
@param		string		$languageCode	Language Code or ISO Code of Country
@param		string		$title			Title and alternative Text of Image (needed for valid XHTML)
@param		string		$class			CSS Class
@return		string		HTML Code of Country Flag Icon
Builds HTML Code of Country Flag Icon statically .