library/Haste/Util/Url.php
public static function addScheme($strUrl, $strScheme = 'http://')
    {
        return parse_url($strUrl, PHP_URL_SCHEME) === null ? $strScheme . $strUrl : $strUrl;
    }
public static function addScheme($strUrl, $strScheme = 'http://')
    {
        return parse_url($strUrl, PHP_URL_SCHEME) === null ? $strScheme . $strUrl : $strUrl;
    }
public static function addScheme ( $ strUrl , $ strScheme = 'http://' ) { return parse_url ( $ strUrl , PHP_URL_SCHEME ) === null ? $ strScheme . $ strUrl : $ strUrl ; }
Check an url for existing scheme and add if it is missing

@param        $strUrl    The url
@param string $strScheme Name of the scheme

@return string The url with scheme
Check an url for existing scheme and add if it is missing