Order persistent params setter

@param array $aParams array of params
974314
public function setPersParams($aParams)
    {
        $this->_aPersParam = $aParams;

        // serializing persisten info stored while ordering
        $this->oxorderarticles__oxpersparam = new \OxidEsales\Eshop\Core\Field(serialize($aParams), \OxidEsales\Eshop\Core\Field::T_RAW);
    }
286724
protected function setSortOrder($arguments)
    {
        $sortString = '';
        if (!empty($arguments['sort'])) {
            $sortString = $arguments['sort'];
        } else {
            if (!empty($this->settings['sort'])) {
                foreach ($this->settings['sort'] as $sortSetting) {
                    if ('default' === $sortSetting['id']) {
                        $sortString = $sortSetting['sortCriteria'];
                        break;
                    }
                }
            }
        }

        $this->addSortStringForQuery($sortString);
        $this->addSortOrdersToTemplate($arguments);
    }
956413
private function setSaltFromParams(array $params)
    {
        $salt = $this->getMatchingData($params, '/^[\.\\A-Za-z0-9]{22}$/');
        $this->salt = (! empty($salt)) ? $salt : self::DEFAULT_SALT;
    }
450317
public function setParams($params)
    {
        // $param should be a single key => value pair
        if (is_array($params)) {
            foreach ($params as $key => $param) {
                $this->params[$key] = $param;
            }
        }
    }
506889
protected function setParams(array $params) {
		parent::setParams($params);
		$ref = $this->relative ? str_replace('(%s)://', '(?:(%s)://)?', $this->ref) : $this->ref;
		$this->ref = sprintf($ref, implode('|', $this->protocols));
	}
628556
public function deleteByParams($params = [])
    {
        extract($params);

        $query = $this->newDeleteQuery();

        if (isset($where)) {
            if (is_array($where)) {
                foreach ($where as $condition) {
                    $condition = (array)$condition;
                    $query->where($condition[0], $condition[1]);
                }
            } else {
                call_user_func_array([$query, 'where'], $where);
            }
        }

        if (isset($order)) {
            call_user_func_array([$query, 'order'], $order);
        }

        if (isset($limit)) {
            call_user_func_array([$query, 'limit'], $limit);
        }

        $this->getDB()->execute($query);

        return $this;
    }
946470
public function orderByRaw(string $sql, string ...$params)
    {
        $this->addOrderBy($this->dialect()->quote($sql), null, $params);

        return $this;
    }
1078570
public function createOrder($parameters = [])
    {
        $response = $this->client->post('transactions/orders', [
            'json' => $parameters,
        ]);
        return json_decode($response->getBody())->order;
    }
470512
private function resetParams($params)
    {
        $keys = is_array($params) ? $params : func_get_args();

        foreach ($keys as $key) {
            if (property_exists($this, $key))
                $this->$key = null;
        }
    }
862052
public function setGetParams($params)
    {
        // We consider the array is a GET array.
        if(!is_array($params)) {
            $params = explode('&', str_replace('?', '', $params));
        }

        $get = array();
        foreach($params as $varname => $varval) {
            if($varname == 'p') continue; // We don't want to specify the page twice!
            if(is_array($varval)) {
                foreach($varval as $subval) {
                    $get[] = "${varname}[]=$subval";
                }
            } else {
                $get[] = "$varname=$varval";
            }
        }
        $this->getparams = implode('&', $get);
    }
1226161
public function actionList($aParams = array())
    {
        $aConfig = $this->config('List');
        $limit = 10;
        
        $aFindParams = array();
        
        if (count($aParams) && $this->sMapperAlias) 
        {
            foreach ($aParams as $key=> $param)
            {
                if ($this->mapper()->isRealFieldExists($key))
                {
                    $aFindParams['Criteria'][$key] = $param;
                }
            }
        }
        
        $page = isset($_GET['page']) ? intval($_GET['page']) - 1 : 0;
        
        $aFindParams['Limit'] = $limit;
        $aFindParams['Offset'] = $page * $limit;
        
        $sort_field = isset($_GET['sort_field']) ? $_GET['sort_field'] : 'Id';
        $sort_direction = isset($_GET['sort_direction']) ? $_GET['sort_direction'] : 'ASC';
        
        $aFindParams['Order'] = array();
        //echo '<pre>', print_r($aFindParams, true), '</pre>'; die();
        
        if (isset($aConfig['Component']['FindParams'])) {
            $aFindParams = ArrayHelper::merge($aFindParams, $aConfig['Component']['FindParams']);
        }
        
        if (!count($aFindParams['Order']))
        {
            $aFindParams['Order'] = array($sort_field => $sort_direction);
        }
        
        $mResult = false;

        if ($aConfig) {
            if (!isset($aConfig['View']) || (isset($aConfig['View']) && $aConfig['View'] != false)) {
                $mResult = $this->view(array(), $aConfig['View']);
            } else if (isset($aConfig['Component'])) {
                $sComponentModule = $aConfig['Component']['Component'][0];
                $sComponentAlias  = $aConfig['Component']['Component'][1];
                $aComponentParams = isset($aConfig['Component']['Params']) ? $aConfig['Component']['Params'] : array();
                
                // Проверка доступа
                $this->checkActionAccess('List');
                
                $aComponentParams['Data'] = $this->getListData($aFindParams);
                $count = $this->getListDataCount($aFindParams);
                
                $oPagination = new Pagination($count);
                $oPagination->setPageSize($aFindParams['Limit']);
                $oPagination->applyLimit(@$aFindParams['Criteria']);
                $aComponentParams['Pagination'] = $oPagination;
                        
                $mResult = $this->component($sComponentModule, $sComponentAlias, $aComponentParams);

            } else {
                $mResult = false;
            }
        } else {
            $mResult = $this->view('List');
        }

        return $mResult;
    }
1184796
public function withParams(array $params): ParamHolderInterface
    {
        $param_holder = clone $this;
        $param_holder->params = array_merge($param_holder->params, $params);
        return $param_holder;
    }
493055
public function createOrder(Array $params)
    {
        $createOrderRequest = $this->getRequestParam('CreateOrderRequestParam', $params, $this->config, $this->sign);

        $formContent = $this->executeFormRequest($createOrderRequest);

        echo $formContent;
    }
57495
public function setParameters(array $params)
    {
        foreach ($params as $name => $value) {
            $this->getParameterContainer()->add($name, $value);
        }
        return $this;
    }
956089
public function paginate(Parameters $params) {
		$sysPrefs = $this->getServiceContainer()->getPreferenceLoader()->getSystemPreferences();
		$defaultSize = $sysPrefs->getPaginationSize();
		$page = $params->getPage('number');
		$size = $params->getPage('size', $defaultSize);

		$query = PositionQuery::create();

		// sorting
		$sort = $params->getSort(Position::getSerializer()->getSortFields());
		foreach ($sort as $field => $order) {
			$method = 'orderBy' . NameUtils::toStudlyCase($field);
			$query->$method($order);
		}

		// filtering
		$filter = $params->getFilter();
		if (!empty($filter)) {
			$this->applyFilter($query, $filter);
		}

		// paginate
		if ($size == -1) {
			$model = $query->findAll();
		} else {
			$model = $query->paginate($page, $size);
		}

		// run response
		return new Found(['model' => $model]);
	}
783127
public function setParams(array $params)
	{
		$this->path = [];
		$this->query = [];
		
		foreach($params as $k => $v)
		{
			if(is_integer($k))
			{
				if(array_key_exists($k, $this->pathParamNames))
				{
					$this->path[$this->pathParamNames[$k]] = $v;
					
					continue;
				}
				
				throw new \OutOfBoundsException(sprintf('No path param at position %u', $k));
			}
			
			if(in_array($k, $this->pathParamNames, true))
			{
				$this->path[$k] = $v;
				
				continue;
			}
			
			$this->query[$k] = $v;
		}
		
		return $this;
	}
1285604
public function setSqlParameters(array $params)
    {
        $this->params = $params;

        $this->stmt = null;
        $this->rowCount = null;
    }