lib/Doctrine/CouchDB/View/Query.php
protected function getHttpQuery()
    {
        $arguments = [];

        foreach ($this->params as $key => $value) {
            if (isset(self::$encodeParams[$key])) {
                $arguments[$key] = json_encode($value);
            } elseif (is_bool($value)) {
                $arguments[$key] = $value ? 'true' : 'false';
            } else {
                $arguments[$key] = $value;
            }
        }

        return sprintf(
            '/%s/_design/%s/_view/%s?%s',
            $this->databaseName,
            $this->designDocumentName,
            $this->viewName,
            http_build_query($arguments)
        );
    }
protected function getHttpQuery()
    {
        $arguments = [];

        foreach ($this->params as $key => $value) {
            if (isset(self::$encodeParams[$key])) {
                $arguments[$key] = json_encode($value);
            } elseif (is_bool($value)) {
                $arguments[$key] = $value ? 'true' : 'false';
            } else {
                $arguments[$key] = $value;
            }
        }

        return sprintf(
            '/%s/_design/%s/_view/%s?%s',
            $this->databaseName,
            $this->designDocumentName,
            $this->viewName,
            http_build_query($arguments)
        );
    }
protected function getHttpQuery ( ) { $ arguments = [ ] ; foreach ( $ this -> params as $ key => $ value ) { if ( isset ( self :: $ encodeParams [ $ key ] ) ) { $ arguments [ $ key ] = json_encode ( $ value ) ; } elseif ( is_bool ( $ value ) ) { $ arguments [ $ key ] = $ value ? 'true' : 'false' ; } else { $ arguments [ $ key ] = $ value ; } } return sprintf ( '/%s/_design/%s/_view/%s?%s' , $ this -> databaseName , $ this -> designDocumentName , $ this -> viewName , http_build_query ( $ arguments ) ) ; }
Encode HTTP Query String for View correctly with the following rules in mind.

1. Params "key", "keys", "startkey" or "endkey" must be json encoded.
2. Booleans must be converted to "true" or "false"

@return string
Encode HTTP Query String for View correctly with the following rules in mind .