Added HTML::link_to_secure_asset method.

This commit is contained in:
Taylor Otwell 2011-07-22 11:22:02 -07:00
parent 9b46956fc9
commit 64351b2268
1 changed files with 15 additions and 2 deletions

View File

@ -71,9 +71,22 @@ public static function link_to_secure($url, $title, $attributes = array())
* @param array $attributes
* @return string
*/
public static function link_to_asset($url, $title, $attributes = array())
public static function link_to_asset($url, $title, $attributes = array(), $https = false)
{
return static::link($url, $title, $attributes, false, true);
return static::link($url, $title, $attributes, $https, true);
}
/**
* Generate an HTTPS HTML link to an asset.
*
* @param string $url
* @param string $title
* @param array $attributes
* @return string
*/
public static function link_to_secure_asset($url, $title, $attributes = array())
{
return static::link_to_asset($url, $title, $attributes, true);
}
/**