Return Querytext.

@return string
555800
public function getQueryText(): string
    {
        return (
            isset($this->filters['_query']) &&
            $this->filters['_query'] instanceof Filter
        )
            ? $this->filters['_query']->getValues()[0]
            : '';
    }
1099387
public function getQueryString()
    {
        $parameters = $this->query->all();
        array_walk($parameters,
            function (&$value, $key)
            {
                $value = $key . '=' . $value;
            }
        );
        return implode('&', $parameters);
    }
211098
public function getQuery()
    {
        $joins = empty($this->joins) ? '' : implode(' ', $this->joins);
        $where = empty($this->where) ? '' : 'WHERE '.implode(' AND ', $this->where);
        $sort = empty($this->sortBy) ? '' : 'ORDER BY '.implode(', ', $this->sortBy);
        $limit = is_null($this->page) ? '' : 'LIMIT ' . $this->page .',' .$this->length;
        $group = empty($this->group) ? '' : 'GROUP BY ' . implode(', ', $this->group);
        
        $query = sprintf(
            'SELECT %s FROM %s %s %s %s %s %s;',
            $this->select,
            $this->from,
            $joins,
            $where,
            $group,
            $sort,
            $limit
        );
        
        return str_replace('  ', ' ', $query);
    }
141157
public function getQuery(): string {
        $query  = $this->query;
        $values = $this->values;

        $matches = null;
        preg_match_all('/[?][#@][a-zA-Z]?[a-zA-Z0-9_]*/', $query, $matches);
        $matches = count($matches) > 0 ? $matches[0] : array();

        foreach ($matches as $i) {
            $varName = substr($i, 2);
            if ($varName != '') {
                if (!isset($this->values[$varName])) {
                    throw new RuntimeException('no value for variable ' . $varName);
                }
                $value = $values[$varName];
                unset($values[$varName]);
            } else {
                if (count($values) == 0) {
                    throw new RuntimeException('number of values lower then the number of variables in the query');
                }
                $value = array_shift($values);
            }
            $value = substr($i, 1, 1) == '#' ? QueryParameter::escapeLiteral($value) : QueryParameter::escapeUri($value);
            $value = str_replace(array('\\', '$'), array('\\\\', '\\$'), $value); // preg replace special chars escape
            $query = preg_replace('/[?][#@]' . $varName . '/', $value, $query, 1);
        }
        if (count($values) > 0) {
            throw new RuntimeException('number of values greater then the number of variables in the query');
        }

        return $query;
    }
1104051
public function getQuery(): string
    {
        $sql = $this->getSql();

        $sql = str_replace(['%', '?'], ['%%', '"%s"'], $sql);

        // replace mask by data
        return vsprintf($sql, $this->getParams());
    }
315783
private function getQueryText()
    {
        $terms = array_map(
            function (TermItem $termItem) {
                return $termItem->getTitle();
            },
            $this->termDataProvider->getItems()
        );

        if (empty($terms)) {
            $terms = [$this->queryFactory->get()->getQueryText()];
        }

        return $terms;
    }
139020
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)
        );
    }
840439
protected function fullQueryString()
    {
        $queryParts = [];

        // Main search can be default search or full text search.
        if ($this->queryString) {
            if (!$this->querySwitchFulltext) {
                $queryParts[] = $this->queryString;
            } else {
                $queryParts[] = $this->createSearchString('fulltext', $this->queryString);
            }
        }
        // Title search can be proper title or journal title depending on the switch.
        if ($this->queryStringTitle) {
            if (!$this->querySwitchJournalOnly) {
                $queryParts[] = $this->createSearchString('title', $this->queryStringTitle);
            } else {
                $queryParts[] = $this->createSearchString('journal', $this->queryStringTitle);
            }
        }
        // Person search is a phrase search.
        if ($this->queryStringPerson) {
            $myQueryStringPerson = preg_replace('/^[\s"]*/', '', $this->queryStringPerson);
            $myQueryStringPerson = preg_replace('/[\s"]*$/', '', $myQueryStringPerson);
            $queryParts[] = $this->createSearchString('person', '"' . $myQueryStringPerson . '"');
        }
        if ($this->queryStringKeyword) {
            $queryParts[] = $this->createSearchString('subject', $this->queryStringKeyword);
        }
        if ($this->queryStringDate) {
            $queryParts[] = $this->createSearchString('date', $this->queryStringDate);
        }

        $query = implode(' and ', $queryParts);
        $query = str_replace('*', '?', $query);
        return $query;
    }
712315
public function getActionText()
    {
        switch ($this->action) {
            case 'follow_user':
                return Yii::t('doing', 'follow on you');
                break;
            case 'answer_question':
                return Yii::t('doing', 'answered the question');
                break;
            case 'follow_question':
                return Yii::t('doing', 'is concerned about the problem');
                break;
            case 'create_article':
                return Yii::t('doing', 'Share an article');
                break;
            case 'create_note':
                return Yii::t('doing', 'Share an note');
                break;
            case 'create_news':
                return Yii::t('doing', 'Share an news');
                break;
            case 'create_live':
                return Yii::t('doing', 'Create the stream');
                break;
            case 'join_live':
                return Yii::t('doing', 'join the live');
                break;
            default:
                return null;
                break;
        }
    }
879854
public function getReasonPhrase()
    {
        if ($this->reasonPhrase) {
            return $this->reasonPhrase;
        }

        $status = $this->getStatusCode();
        if (isset($this->phrases[$status])) {
            return $this->phrases[$status];
        }

        return '';
    }
537212
public function getQueryString()
    {
        $qs = static::normalizeQueryString($this->getRequest()->server->get('QUERY_STRING'));

        return '' === $qs ? null : $qs;
    }
956206
public function email() : Text
    {
        return $this->pipe(
            self::predicate(
                function (string $value) : bool {
                    return filter_var($value, FILTER_VALIDATE_EMAIL) !== false;
                },
                'not an email'
            )
        );
    }
29207
public function getRequestUri() 
    {
        if (!$this->uri) {
            $queryString = (PHP_SAPI == 'cli' && isset($_SERVER['argv'][1])) ? $_SERVER['argv'][1] : $this->getServer('QUERY_STRING');
            if (!$this->getServer('REQUEST_URI')) {
                $_SERVER['REQUEST_URI'] = $this->getScriptUrl() . ($queryString ? '?'  : '') . $queryString;
            } else if (strpos($this->getServer('REQUEST_URI'), '?') === false && $queryString) {
                $_SERVER['REQUEST_URI'] .= '?' . $queryString;
            }
            
            $this->uri = &$_SERVER['REQUEST_URI'];    
        }
        
        return $this->uri;
    }
167381
public function getFullUri()
    {
        $queryString = '';

        $params = array();
        if ($this->hasQuery()) {
            $params[] = $this->getQueryParam();
        }

        if ($this->hasOrderBy()) {
            $params[] = $this->getOrderByParam();
        }

        if ($this->hasSummarizeBy()) {
            $params[] = 'summarize-by=' . $this->getSummarizeBy();
        }

        if ($this->hasOffset()) {
            $params[] = 'offset=' . $this->getOffset();
        }

        if ($this->hasLimit()) {
            $params[] = 'limit=' . $this->getLimit();
        }

        if ($this->hasIncludeTotal()) {
            $params[] = 'include-total=' . $this->getIncludeTotalAsString();
        }

        if (!empty($params)) {
            $queryString = '?' . implode('&', $params);
        }

        return '/' . ltrim($this->getUri(), '/') . $queryString;
    }
971421
protected function _getQuery()
    {
        $oCat = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
        $oCat->setLanguage(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('editlanguage'));

        $sCategoriesTable = $oCat->getViewName();

        return " from $sCategoriesTable where " . $oCat->getSqlActiveSnippet();
    }
1134093
public function getFullUrl(): string
    {
        $queryString = $this->getQueryString();

        return sprintf(
            '%s%s%s',
            static::getBaseUri(),
            $this->getEndpoint(),
            ($queryString) ? '/?'.$queryString : ''
        );
    }
153013
public function getMissingText()
    {
        $missing = $this->missing ?: $this->dataFilter->getMissingTemplate();
        return U::formatString($missing, array(
            'attrib' => $this->name
        ));
    }