protected function buildUrl($uri, $params)
    {
        $host = $this->buildHostString();

        if (strpos($uri, "/") !== 0) {
            $uri = "/" . $uri;
        }

        $url = $host . $uri;


        if ($params === null) {
            $params = array();
        }

        $url .= $this->buildQueryString($params);

        return $url;
    }
protected function buildUrl($uri, $params)
    {
        $host = $this->buildHostString();

        if (strpos($uri, "/") !== 0) {
            $uri = "/" . $uri;
        }

        $url = $host . $uri;


        if ($params === null) {
            $params = array();
        }

        $url .= $this->buildQueryString($params);

        return $url;
    }
protected function buildUrl ( $ uri , $ params ) { $ host = $ this -> buildHostString ( ) ; if ( strpos ( $ uri , "/" ) !== 0 ) { $ uri = "/" . $ uri ; } $ url = $ host . $ uri ; if ( $ params === null ) { $ params = array ( ) ; } $ url .= $ this -> buildQueryString ( $ params ) ; return $ url ; }
build complete url

@param string $uri    uri string
@param mixed  $params query string parameters

@return string
build complete url