public function getUrl() {
        $query = $this->getQuery();
        return
            $this->getScheme().
            '://'.
            $this->getHostAndPort().
            $this->getRoot().
            $this->getPath().
            (!empty($query) ? '?'.http_build_query($query) : '');
    }
public function getUrl() {
        $query = $this->getQuery();
        return
            $this->getScheme().
            '://'.
            $this->getHostAndPort().
            $this->getRoot().
            $this->getPath().
            (!empty($query) ? '?'.http_build_query($query) : '');
    }
public function getUrl ( ) { $ query = $ this -> getQuery ( ) ; return $ this -> getScheme ( ) . '://' . $ this -> getHostAndPort ( ) . $ this -> getRoot ( ) . $ this -> getPath ( ) . ( ! empty ( $ query ) ? '?' . http_build_query ( $ query ) : '' ) ; }
Get the full url of the request.

@return string Returns the full url of the request.
@see Request::setUrl()
Get the full url of the request .