Sets canonical link.
Removes link having been set before.
@access		public
@param		string		$url			URL of canonical link
@return		void
359325
public function setCanonicalLink( $url )
	{
		foreach( $this->links as $nr => $link )
			if( $link['rel'] === 'canonical' )
				unset( $this->links[$nr] );
		$this->addLink( $url, 'canonical' );
	}
150856
public function setUrl($url)
    {
        $this->urlAbsolute = preg_replace('#/$#', '', $url);

        if ($this->urlRelative === null) {
            $this->urlRelative = $this->urlAbsolute;
        }

        return $this;
    }
1090771
public function setUrl ($url)
		{
			$this->authUrl = $url . '/oauth2/authorize';
			$this->tokenUrl = $url . '/oauth2/access_token';
			$this->apiBaseUrl = $url . '/users';
			$this->returnUrl = Yii::$app->request->hostInfo . '/' . Yii::$app->request->pathInfo;
		}
952854
public function setUrl($url)
    {
        if (filter_var($url, FILTER_VALIDATE_URL) !== $url) {
            throw new \Exception('Invalid URL: '.$url);
        }
        $this->url = $url;
    }
170160
public function reset($url) {
        $path = $this->url->relativePath($url);
        $this->storage->deleteCrops($path);
    }
685173
public function initialise($url = null)
    {
        $this->replaceOptions(
            array(
                CURLOPT_URL => $url,
                CURLOPT_RETURNTRANSFER => true
            )
        );

        $this->info = array();
    }
1013692
public function setUrl(string $url = null)
    {
        $this->url = $url;

        if ($url !== null) {
            $this->callbackData = null;
            $this->switchInlineQuery = null;
        }

        return $this;
    }
1040982
public function link($url)
    {
        $this->element = 'a';
        if (is_string($url)) {
            $this->setAttr('href', $url);

            return $this;
        }
        $this->setAttr('href', $this->url($url));

        return $this;
    }
45460
public function canonicalUrl($url)
    {
        if (strlen($url)) {
            if ($url[0] == '/') {
                // If the URL begins with a "/", the following is the
                // canonical URL
                return substr($url, 1);
            } else {
                // Else, the canonical name is under the current dir
                if ($this->getDirName()) {
                    return $this->canonicalize($this->getDirName() . '/' .$url);
                } else {
                    return $this->canonicalize($url);
                }
            }
        }

        return null;
    }
883028
private function setMainUrl(Url $url)
    {
        if (null !== $this->mainUrl) {
            $this->mainUrl->setMain(false);
        }

        $this->mainUrl = $url;
        $this->mainUrl->setMain(true);
    }
491006
public static function setServerLoginURL($url = '')
    {
        phpCAS :: traceBegin();
        phpCAS::_validateClientExists();

        try {
            self::$_PHPCAS_CLIENT->setServerLoginURL($url);
        } catch (Exception $e) {
            phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
        }

        phpCAS :: traceEnd();
    }
475186
public function setUrl($url)
    {
        $url = parse_url($url);

        $this->setHost($url['host']);

        if(isset($url['port']))
        {
            $this->setPort($url['port']);
        }

        return $this;
    }
1022709
public function setUrl(HttpUrl $url)
    {
        //Remove the user and pass from the view url
        unset($url->user);
        unset($url->pass);

        $this->__url = $url;
        return $this;
    }
251794
public function setUrl($url)
    {
        $this->url = $url;

        if ($this->url) {
            $this->updatedAt = new \DateTime('now');
        }

        return $this;
    }
1322884
public function setUrl($url)
    {
        $url = $this->url($url)->getPath();
        $this->url = $this->str($url)->trimRight('/')->val() . '/';
    }
925372
public function setSiteRoot($url)
    {
        $url = strval($url);
        if ('' !== $url)
        {
            $url = rtrim(parse_url($url, PHP_URL_PATH), '/');
            if (substr($url, 0, 1) != '/')
            {
                $url = '/' . $url;
            }
        }
        $this->siteRoot = $url;
    }
528072
public function setLink($link)
    {
        if ($this->version == Eresus_Feed_Writer::RSS2 || $this->version == Eresus_Feed_Writer::RSS1)
        {
            $this->addElement('link', $link);
        }
        else
        {
            $this->addElement('link', '', array('href' => $link));
            $this->addElement('id', Eresus_Feed_Writer::uuid($link, 'urn:uuid:'));
        }

    }