src/UI/HTML/Elements.php
public static function Link( $url, $name, $class = NULL, $target = NULL, $confirm = NULL, $tabindex = NULL, $key = NULL, $relation = NULL )
	{
		$url = str_replace( '"', "'", $url );
		$url = str_replace( "&", "&amp;", $url );
		$attributes	= array(
			'href'		=> $url,
			'class'		=> $class		? $class : NULL,
			'accesskey'	=> $key			? $key : NULL,
			'tabindex'	=> $tabindex	? $tabindex : NULL,
			'target'	=> $target		? $target : NULL,
			'rel'		=> $relation	? $relation : NULL,
			'onclick'	=> $confirm		? "return confirm('".$confirm."')" : NULL,
		);
		$link	= UI_HTML_Tag::create( "a", $name, $attributes );
		return $link;
	}
public static function Link( $url, $name, $class = NULL, $target = NULL, $confirm = NULL, $tabindex = NULL, $key = NULL, $relation = NULL )
	{
		$url = str_replace( '"', "'", $url );
		$url = str_replace( "&", "&amp;", $url );
		$attributes	= array(
			'href'		=> $url,
			'class'		=> $class		? $class : NULL,
			'accesskey'	=> $key			? $key : NULL,
			'tabindex'	=> $tabindex	? $tabindex : NULL,
			'target'	=> $target		? $target : NULL,
			'rel'		=> $relation	? $relation : NULL,
			'onclick'	=> $confirm		? "return confirm('".$confirm."')" : NULL,
		);
		$link	= UI_HTML_Tag::create( "a", $name, $attributes );
		return $link;
	}
public static function Link ( $ url , $ name , $ class = NULL , $ target = NULL , $ confirm = NULL , $ tabindex = NULL , $ key = NULL , $ relation = NULL ) { $ url = str_replace ( '"' , "'" , $ url ) ; $ url = str_replace ( "&" , "&amp;" , $ url ) ; $ attributes = array ( 'href' => $ url , 'class' => $ class ? $ class : NULL , 'accesskey' => $ key ? $ key : NULL , 'tabindex' => $ tabindex ? $ tabindex : NULL , 'target' => $ target ? $ target : NULL , 'rel' => $ relation ? $ relation : NULL , 'onclick' => $ confirm ? "return confirm('" . $ confirm . "')" : NULL , ) ; $ link = UI_HTML_Tag :: create ( "a" , $ name , $ attributes ) ; return $ link ; }
Erzeugt HTML-Code eines Links.
@access		public
@static
@param		string		$url			URL des Links
@param		string		$name			Name des Links
@param		string		$class			CSS-Klasse des Links
@param		string		$target			Zielframe des Links
@param		string		$confirm		Bestätigungstext des Links
@param		int			$tabindex		Tabulatur-Index
@param		string		$key			Access Key (eindeutiger Buchstabe)
@param		bool		$relation		Relation (nofollow,licence,...)
@return		string
Erzeugt HTML - Code eines Links .