public function getUrl()
    {
        $url = $this->getBaseUrl();

        if ($query = $this->getQueryString()) {
            if ($url) {
                if (!$this->path) {
                    $url .= '/';
                }
                $url .= '?';
            }

            $url .= $query;
        }

        if (isset($this->fragment)) {
            $url .= '#' . $this->fragment;
        }

        return $url;
    }
public function getUrl()
    {
        $url = $this->getBaseUrl();

        if ($query = $this->getQueryString()) {
            if ($url) {
                if (!$this->path) {
                    $url .= '/';
                }
                $url .= '?';
            }

            $url .= $query;
        }

        if (isset($this->fragment)) {
            $url .= '#' . $this->fragment;
        }

        return $url;
    }
public function getUrl ( ) { $ url = $ this -> getBaseUrl ( ) ; if ( $ query = $ this -> getQueryString ( ) ) { if ( $ url ) { if ( ! $ this -> path ) { $ url .= '/' ; } $ url .= '?' ; } $ url .= $ query ; } if ( isset ( $ this -> fragment ) ) { $ url .= '#' . $ this -> fragment ; } return $ url ; }
Retrieve the complete generated URL.

@return string
Retrieve the complete generated URL .