src/ICal/ICal.php
public function initUrl($url, $username = null, $password = null, $userAgent = null)
    {
        if (!is_null($username) && !is_null($password)) {
            $this->httpBasicAuth['username'] = $username;
            $this->httpBasicAuth['password'] = $password;
        }

        if (!is_null($userAgent)) {
            $this->httpUserAgent = $userAgent;
        }

        $this->initFile($url);

        return $this;
    }
public function initUrl($url, $username = null, $password = null, $userAgent = null)
    {
        if (!is_null($username) && !is_null($password)) {
            $this->httpBasicAuth['username'] = $username;
            $this->httpBasicAuth['password'] = $password;
        }

        if (!is_null($userAgent)) {
            $this->httpUserAgent = $userAgent;
        }

        $this->initFile($url);

        return $this;
    }
public function initUrl ( $ url , $ username = null , $ password = null , $ userAgent = null ) { if ( ! is_null ( $ username ) && ! is_null ( $ password ) ) { $ this -> httpBasicAuth [ 'username' ] = $ username ; $ this -> httpBasicAuth [ 'password' ] = $ password ; } if ( ! is_null ( $ userAgent ) ) { $ this -> httpUserAgent = $ userAgent ; } $ this -> initFile ( $ url ) ; return $ this ; }
Initialises lines from a URL

@param  string $url
@param  string $username
@param  string $password
@param  string $userAgent
@return ICal
Initialises lines from a URL