Render the query to a string.

@return  string  The query string.
341525
public function toString()
    {
        $adapter = $this->getAdapter();
        $prefix  = $adapter->getTablePrefix();
        $query   = $this->type;

        if($this->table) {
            $query .= ' INTO '.$adapter->quoteIdentifier($prefix.$this->table);
        }

        if($this->columns) {
            $query .= '('.implode(', ', array_map(array($adapter, 'quoteIdentifier'), $this->columns)).')';
        }

        if($this->values)
        {
            if(!$this->values instanceof KDatabaseQuerySelect)
            {
                $query .= ' VALUES'.PHP_EOL;

                $values = array();
                foreach ($this->values as $row)
                {
                    $data = array();
                    foreach($row as $column) {
                        $data[] = $adapter->quoteValue(is_object($column) ? (string) $column : $column);
                    }

                    $values[] = '('.implode(', ', $data).')';
                }

                $query .= implode(', '.PHP_EOL, $values);
            }
            else $query .= ' '.$this->values;
        }

        if($this->duplicate_key_values && $this->type === 'INSERT')
        {
            $values = array();
            foreach($this->duplicate_key_values as $value) {
                $values[] = ' '. $adapter->quoteIdentifier($value);
            }

            $update_clause = implode(', ', $values);

            if($this->_parameters) {
                $update_clause = $this->_replaceParams($update_clause);
            }

            $query .= ' ON DUPLICATE KEY UPDATE '.$update_clause;
        }

        return $query;
    }
1076195
public function render()
    {
        $this->params = $this->extra_params;
        $r = $this->_render();
        $this->debug((string) $this->getDebugQuery($r));

        return $r;
    }
1014352
public function render()
        {
            // If the content is a stringable object, we'll go ahead and call
            // the toString method so that we can get the string content of
            // the content object. Otherwise we'll just cast to string.
            if (str_object($this->content)) {
                $this->content = $this->content->__toString();
            } else {
                $this->content = (string) $this->content;
            }

            // Once we obtain the string content, we can set the content on
            // the HttpFoundation's Response instance in preparation for
            // sending it back to client browser when all is finished.
            $this->foundation->setContent($this->content);

            return $this->content;
        }
570246
public function getQueryString()
    {
        $query_string = '';
        if (count($this->query_string) > 0) {
            $query_string .= http_build_query($this->query_string);
        }
        if ($this->method != 'POST') {
            if (count($this->data) > 0) {
                $query_string .= http_build_query($this->data);
            }
        }
        if (mb_strlen($query_string) > 0) {
            $query_string = (mb_strpos($this->url, '?') ? '&' : '?') . $query_string;
        }

        return $query_string;
    }
1099387
public function getQueryString()
    {
        $parameters = $this->query->all();
        array_walk($parameters,
            function (&$value, $key)
            {
                $value = $key . '=' . $value;
            }
        );
        return implode('&', $parameters);
    }
1125878
public function asString()
    {
        $query = '';

        if (!empty($this->list)) {
            foreach ($this->list as $clause) {
                $query .= $clause->asString();
            }
        }

        return $query;
    }
1371125
public function render()
    {
        if (!$this->grid->showPagination()) {
            return '';
        }

        return $this->paginationRanger().
            $this->paginationLinks().
            $this->perPageSelector();
    }
775643
public function render(): string
    {
        return $this->renderTable() . $this->renderPk() . $this->renderIndexes() . $this->renderForeignKeys() . "\n";
    }
574620
protected function renderOperatorString()
    {

        $parameters = $this->parameters ? $this->renderParameters($this->parameters) : '';

        if ($this->operator) {
            return $this->operator . ($parameters ? " $parameters" : '');
        }

        return $this->name . "($parameters)";
    }
29876
public function getQueryString() {
        // The variable $_SERVER['QUERY_STRING'] is set by the server and can differ from the transmitted query string.
        // It might hold additional parameters added by the server or it might be empty (e.g. on a mis-configured nginx).

        if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING'])) {
            $query = $_SERVER['QUERY_STRING'];
        }
        else {
            $query = strRightFrom($_SERVER['REQUEST_URI'], '?');
        }
        return $query;
    }
1364692
public function __tostring ()
    {
        if (is_null($this->queryElements))
        {
            return "";
        }

        $query = [];

        foreach ($this->queryElements as $soqlKey => $value)
        {
            $value = (is_array($value)) ? implode(self::DELIMITER, $value) : $value;

            $query[] = sprintf("%s=%s", $soqlKey, $value);
        }

        return implode("&", $query);
    }
1353306
public function render() {
        $string = '';
        foreach (static::$_scripts as $script) {
            $method = '_render' . ucfirst($script['type']);
            $string .= $this->{$method}($script['value'], $script['attrs']);
        }
        return $string;
    }
404595
public function getQuery()
    {
        // Convert the query string to a query object if not already done.
        if (!$this->query instanceof Query) {
            $this->query = $this->query === null
                ? new Query()
                : Query::fromString($this->query);
        }

        return $this->query;
    }
695917
public function render()
    {
        if (empty($this->string)) {
            return '';
        }

        $string = str_repeat(' ', $this->indent) . $this->string . str_repeat(' ', $this->space);

        return $this->color->paint($string);
    }
876506
public function toString()
    {
        $string = '';

        if ($this->scheme) {
            $slashes = $this->isFlat() ? '' : '//';
            $string .= "{$this->scheme}:$slashes";
        }

        if ($authority = $this->getAuthority()) {
            $string .= $authority;
        }

        if ($this->path->count() && !$this->isFlat()) {
            $prefix = $authority || $this->path->getPrefix() ? '/' : '';
            $string .= $prefix.ltrim((string) $this->path, '/');
        }

        if ($this->query) {
            $string .= '?'.http_build_query($this->query);
        }

        if ($this->fragment) {
            $string .= "#{$this->fragment}";
        }

        return $string;
    }
147520
public function toString()
    {
        $request = sprintf('%s %s HTTP/%s', $this->getMethod(), (string) $this->getUrl(), $this->getVersion());

        $str = trim($request) . "\r\n";
        $str .= $this->getHeaders();
        $str .= "\r\n";
        $str .= $this->getContent();
        return $str;
    }
461840
public function getQueryString()
    {
        $query = '';

        foreach ($this->query as $name => $value) {
            if ($query) {
                $query .= '&';
            }

            $query .= $name;
            if ($value) {
                $query .= '=' . $value;
            }
        }

        if ('' === $query) {
            return null;
        }

        return $query;
    }