Returns the Url to this Tree Item

@return string
542948
public function getUrlAttribute()
    {
        return url(trim(($this->parent ? $this->parent->full_slug : '').'/'.$this->slug, '/'));
    }
1168528
public function getUrl()
    {
        // Ensure in request cycle (even for override).
        if ($this->request === null) {
            return null;
        }

        // Ensure request has been matched
        if (!$this->request->attributes->get('_route')) {
            return null;
        }

        if ($this->override) {
            $this->resolveCurrentOverride();

            return (string) $this->override;
        }

        return $this->urlGenerator->generate(
            $this->request->attributes->get('_route'),
            $this->request->attributes->get('_route_params'),
            UrlGeneratorInterface::ABSOLUTE_URL
        );
    }
1347902
public function get_return_url() {
        global $CFG;
        return $CFG->wwwroot . '/mod/' . $this->cm->modname . '/view.php?id=' . $this->cm->id;
    }
287386
public function get()
    {
        $path = $this->getView()->getParam('this.permalink');
        $params = $this->getView()->getParams();
        $permalink = $this->getView()->getParam('this.permalink', null);

        $params = array_merge($params['site'], $params['page']);
        foreach ($params as $name => $param) {
            // apply only scalar params
            if (is_scalar($param)) {
                $path = str_replace(':' . $name, $this->normalize($param), $path);
            }
        }

        $path = rtrim($this->getView()->getOutputDir(), '/') . '/'
              . ltrim($path, '/');

        if (substr($path, -1) === '/') {
            $path .= 'index.html';
        } else if (is_null($permalink) && substr($path, -5) !== '.html') {
            $path .= '.html';
        }

        return $path;
    }
655684
public function get_url() {
        if ($this->other['forumtype'] == 'single') {
            // Single discussion forums are an exception. We show
            // the forum itself since it only has one discussion
            // thread.
            $url = new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
        } else {
            $url = new \moodle_url('/mod/forum/discuss.php', array('d' => $this->other['discussionid']));
        }
        $url->set_anchor('p'.$this->objectid);
        return $url;
    }
816033
protected function getCloneUrl()
    {
        $url = $this->getProject()->getReference();

        if (substr($url, -1) != '/') {
            $url .= '/';
        }

        $branch = $this->getBranch();

        if (empty($branch) || $branch == 'trunk') {
            $url .= 'trunk';
        } else {
            $url .= 'branches/' . $branch;
        }

        return $url;
    }
922344
public function getUrl()
    {
        $query = $this->getQueryString();
        return sprintf('%s://%s/%s/%s%s',
            $this->getScheme(),
            trim($this->getHost(), '/'),
            trim($this->config->getRootEndpoint(), '/'),
            $this->getEntityType(),
            empty($query) ? '' : sprintf('?%s', $query)
        );
    }
1132903
public function getWebroot()
    {
        if ($this->_webroot === null) {
            $this->_webroot = realpath(realpath($this->basePath) . DIRECTORY_SEPARATOR . $this->webrootDirectory);
        }
        
        return $this->_webroot;
    }
404962
public function get_url() {
        $params = array('id' => $this->contextinstanceid);
        if (!empty($this->other['mode'])) {
            $params['mode'] = $this->other['mode'];
        }
        return new \moodle_url("/mod/$this->objecttable/view.php", $params);
    }
118441
public function getRelativeUrl()
    {
        $url = $this->getResourceUrl($this->resource, $this->idParam);

        if ($this->subresources && count($this->subresources)) {
            foreach($this->subresources as $subresource) {
                if ($subresource['name']) {
                    $url .= $this->getResourceUrl($subresource['name'], $subresource['id']);
                }
            }
        }

        return $url;
    }
908867
public function GetBaseUrl () {
		if ($this->baseUrl === NULL) 
			$this->baseUrl = $this->GetDomainUrl() . $this->GetBasePath();
		return $this->baseUrl;
	}
800524
public function getUrl()
    {
        if ($this->_url instanceof Closure) {
            return call_user_func($this->_url, $this);
        }

        return $this->_url ?: Yii::$app->request->referrer;
    }
1023664
public function link() {
		if ( !isset($this->url) || !$this->url ) {
			if ( isset($this->_menu_item_type) && $this->_menu_item_type == 'custom' ) {
				$this->url = $this->_menu_item_url;
			} else if ( isset($this->menu_object) && method_exists($this->menu_object, 'get_link') ) {
					$this->url = $this->menu_object->link();
				}
		}
		return $this->url;
	}
97774
public static function GetBaseURL()
	{
		$url = self::GetCurrentURL(false);
		$slash = strripos($url,"/");
		return substr($url,0,$slash+1);
	}
1034669
public static function GetUrl () {
		return static::LasyClassVarAccessCallback('url', function () {return sprintf('%s://%s%s%s', strtolower(static::GetCurrnetProtocol()), static::GetDomainName(), static::GetPath(), !empty($query_parameter = static::GetParameters()->getRecursiveArrayCopy()) ? sprintf('?%s', http_build_query($query_parameter)) : '');});
	}
448030
public function getUrl()
    {
        return $this->url && $this->token
            ? $this->url  . '?token=' . $this->token
            : null;
    }
554641
public function url()
    {
        if (empty($parameters = func_get_args())) {
            return $this->to('/');
        }

        $path = array_shift($parameters);

        $result = preg_replace_callback('#\{(\d+)\}#', function ($matches) use ($parameters)
        {
            list ($value, $key) = $matches;

            return isset($parameters[$key]) ? $parameters[$key] : $value;

        }, $path);

        return $this->to($path);
    }