Build Query Builder Parameters.

@return array
484040
protected function parameterize()
    {
        $args       = func_get_args();
        $keyword    = count($args) > 2 ? $args[2] : $args[1];
        $parameters = Helper::buildParameters($args);
        $parameters = Helper::replacePatternWithKeyword($parameters, $keyword, '$1');

        return $parameters;
    }
1170423
protected function getAllowedQueryParameters()
    {
        $queryParameters = QueryService::getDefaultQueryParameters();
        $customParameters = $this->getCustomQueryParameters();

        if (is_array($customParameters) && count($customParameters) > 0) {
            $queryParameters = array_merge($queryParameters, $customParameters);
        }

        return $queryParameters;
    }
608199
public function getParameters() : array
    {
        if (is_null($this->parameters)) {
            $matches = [];
            $regExp = self::PARAMS_SEARCH_REGEXP;
            preg_match_all($regExp, $this->str, $matches);
            $this->parameters = $matches[2];
        }

        return $this->parameters;
    }
805463
public static function getParams(): array
    {
        $body = (array)self::getInstance()->getParsedBody();
        $query = (array)self::getInstance()->getQueryParams();
        return array_merge([], $body, $query);
    }
129440
protected function getQueryParameters($query)
    {
        $pairs = explode('&', $query);

        $parameters = [];

        foreach ($pairs as $pair) {
            if ('' === trim($pair)) {
                continue;
            }

            $nameValue = explode('=', $pair);

            $name = urlencode($nameValue[0]);
            $value = urlencode($nameValue[1]);

            $parameters[$name] = $value;
        }

        return $parameters;
    }
641334
public function queryBuilder()
    {
        if (!$this->queryBuilder) {
            $this->queryBuilder = $this->grid->model()->getQueryBuilder();
        }

        return $this->queryBuilder;
    }
264482
public function compileParameters(): array
    {
        $return = [
            'query' => [],
            'resource_id' => $this->resourceId,
        ];

        if ($this->filterBy) {
            $return['query']['filter_by'] = $this->filterBy;
        }

        if ($this->sortBy) {
            $return['query']['sort_by'] = $this->sortBy;
        }

        if ($this->fieldList) {
            $return['query']['field_list'] = $this->fieldList;
        }

        if ($this->parameters) {
            foreach ($this->parameters as $name => $value) {
                $return['query'][$name] = $value;
            }
        }

        return $return;
    }
941808
public function queryParameters() {
		if(!$this->configured || $this->via != self::QUERY_PARAMETER)
			return array();
		
		return array($this->description->query_parameter => $this->token);
	}
197669
protected function prepareParams()
    {
        $params = [];

        if ( ! empty($this->_where) && is_array($this->_where)) {
            $params['filters'] = $this->_where;
        }

        if ( ! empty($this->_offset)) {
            $params['offset'] = $this->_offset;
        }

        if ( ! empty($this->_limit)) {
            $params['limit'] = $this->_limit;
        }

        if ( ! empty($this->_orders) && is_array($this->_orders)) {
            foreach ($this->_orders as $field => $order) {
                $params['order_by'][$field] = $order;
            }
        }

        return $params;
    }
486162
protected function GetConstructParams()
    {
        return array($this->name, $this->typeDef, $this->defaultValue, $this->isNullable, $this->keyInfo, $this->foreignKey, $this->foreignKeyConstraint);
    }
964967
protected static function getParams()
    {
        $adapter  = app(FilterAdapter::class)->add(ActivityTypeWidgetFilter::class);
        $request  = app('request');
        $priority = $request->get('priority');
        $search   = $request->get('search');
        $logs     = self::filter($priority, $search);
        return [
            'select_url'        => self::getBaseUrl(['page' => 1, 'per_page' => self::perPage, 'search' => '']),
            'search_url'        => self::getBaseUrl(['page' => 1, 'per_page' => self::perPage, 'priority' => null]),
            'url'               => self::getBaseUrl(),
            'selected_priority' => $priority,
            'search'            => $search,
            'types'             => app(LogTypes::class)->all(),
            'logs'              => $logs,
            'pagination'        => $logs->links('antares/foundation::layouts.antares.partials.pagination._pagination'),
            'priorites'         => app(LogPriorities::class)->all(),
            'filters'           => $adapter->getFilters('antares/logger::admin.widgets.log_filter')
        ];
    }
459678
public function getQueryParams()
    {
        if (is_array($this->query)) {
            return $this->query;
        }

        if ($this->uri === null) {
            return [];
        }

        parse_str($this->uri->getQuery(), $this->query);

        return $this->query;
    }
86388
public function build()
    {
        $params = [];
        if ($this->value !== null) {
            $op = !is_null($this->operator) ? $this->operator : '=';

            $paramName = str_replace('.', '_', $this->key);
            if ($op == 'BETWEEN') {
                $sql = "{$this->key} $op ? AND ?";

                $between = explode('AND', $this->value);

                $params[':dateFrom'] = trim($between[0]);
                $params[':dateTo'] = trim($between[1]);
            } else {
                $sql = "{$this->key} $op ?";                                    // $sql = "{$this->key} $op {$paramName}";
                $params[":{$paramName}"] = $this->value;
            }
        } else {
            $sql = $sql = "{$this->key} IS NULL ";
        }

        return [$sql, $params];
    }
1196575
public function buildSearchArray($queryParameters)
    {
        $allowedStringCriteria = array('name', 'dateFrom', 'dateTo');
        $allowedArrayCriteria = array('types');
        $criteria = array();

        foreach ($queryParameters as $parameter => $value) {
            if (in_array($parameter, $allowedStringCriteria) && is_string($value)) {
                $criteria[$parameter] = $value;
            } elseif (in_array($parameter, $allowedArrayCriteria) && is_array($value)) {
                $criteria[$parameter] = $value;
            }
        }

        return $criteria;
    }
1100564
protected function getDatabaseQueries()
    {
        $queries = [];
        foreach ($this->logger->queries as $query) {
            $queries[] = [
                'query'      => $this->formatter->format($this->connection->getDatabasePlatform(), $query['sql'], $query['params']),
                'duration'   => $query['executionMS'] * 1000,
                'connection' => $this->connection->getDriver()->getName()
            ];
        }

        return $queries;
    }
86109
public function build()
    {
        $query = $this->qb;
        if ($this->getWhereExpression()) {
            $query->where($this->getWhereExpression());
        }
        foreach ($this->getWhereParameters() as $key => $param) {
            $query->setParameter($key, $param, is_array($param) ? Connection::PARAM_STR_ARRAY : null);
        }

        return $query;
    }
291158
public function toUrlQuery()
    {
        $queryData = array();
        foreach (self::$properties as $p => $setter) {
            if ($this->$p !== null) {
                $queryData[$p] = $this->$p;
            }
        }
        return http_build_query($queryData);
    }