public static function link($url, $text, array $attributes = null) {
        $attributes = (array)$attributes;
        $attributes['href']  = $url;
        return self::tag('a', $text, $attributes);
    }
public static function link($url, $text, array $attributes = null) {
        $attributes = (array)$attributes;
        $attributes['href']  = $url;
        return self::tag('a', $text, $attributes);
    }
public static function link ( $ url , $ text , array $ attributes = null ) { $ attributes = ( array ) $ attributes ; $ attributes [ 'href' ] = $ url ; return self :: tag ( 'a' , $ text , $ attributes ) ; }
Generates a simple html link

@param string|moodle_url $url The URL
@param string $text The text
@param array $attributes HTML attributes
@return string HTML fragment
Generates a simple html link