Get the params from the request.

@return array
420593
protected function getParams()
    {
        $reserved = [
            $this->config('prefix', '').'sort',
            $this->config('prefix', '').'fields',
            $this->config('prefix', '').'limit',
            $this->config('prefix', '').'with',
            $this->config('prefix', '').'page',
        ];

        return $this->params ?: $this->request->except($reserved);
    }
325603
private function getCustomParamsArray()
    {
        $customParams = $this->customParams;
        ksort($customParams);
        foreach ($customParams as $key => $value) {
            $customParams[$this->customParamsPrefix . $key] = $value;
            unset($customParams[$key]);
        }
        return $customParams;
    }
33197
public function getParameters()
    {
        if (isset($this->payload->params)) {
            /* JSON-RPC 2 can pass named params. For PHP's sake, turn that into a single object param. */
            return is_array($this->payload->params) ? $this->payload->params : array($this->payload->params);
        }
        return array();
    }
1153916
protected static function getAllParams() {
        if ($_SERVER['REQUEST_METHOD'] == 'PUT' || $_SERVER['REQUEST_METHOD'] == 'DELETE') {

            $input = file_get_contents('php://input');

            $encoded_data = array();

            if (isset($_SERVER['CONTENT_TYPE'])) {
                switch ($_SERVER['CONTENT_TYPE']) {
                    case 'application/x-www-form-urlencoded':
                        parse_str($input, $encoded_data);
                        break;
                    case 'application/json':
                        $encoded_data = json_decode($input);
                        break;
                    default :
                        $encoded_data = parse_raw_http_request($input);
                        break;
                }
            }

            if ($encoded_data) {
                foreach ($encoded_data as $key => $val) {
                    $_REQUEST[$key] = $val;
                }
            }
        }

        return $_REQUEST;
    }
222892
public function getQueryParams()
    {
        if ($this->_queryParams === null) {
            $this->_queryParams = $this->swooleRequest->get;
        }

        return $this->_queryParams;
    }
419849
public function getGetParams()
  {
    if (isset($this->searchTerm))
    {
      $this->queryParams['q'] = $this->searchTerm;
    }

    return $this->queryParams;
  }
799930
protected function getParams()
    {
        $keys = array();
        foreach (func_get_args() as $k) {
            if (is_string($k)) {
                $keys[] = $k;
            }
        }

        $params = $returnedParams = Input::all();

        list($offset, $limit) = $this->apiOffsetLimit();
        $params['offset'] = $offset;
        $params['limit']  = $limit;

        if (Input::has('includes') && is_array(Input::get('includes'))) {
            $params['includes'] = (array) Input::get('includes');
        }

        /*
         * Clean
         */
        if (!empty($key) && !empty($params)) {
            $returnedParams = array();

            foreach ($params as $key => $value) {
                if (in_array($key, $keys)) {
                    $returnedParams[$key] = $value;
                }
            }
        }

        return $returnedParams;
    }
562197
public function get_params() {
        return array('contextid'=>$this->context->id,
                     'component'=>$this->lf->get_component(),
                     'filearea' =>$this->lf->get_filearea(),
                     'itemid'   =>$this->lf->get_itemid(),
                     'filepath' =>$this->lf->get_filepath(),
                     'filename' =>$this->lf->get_filename());
    }
422280
protected function getParams()
    {
        $aParams = [];

        if (null !== $this->getSize()) {
            $aParams['s'] = $this->getSize();
        }

        if (null !== $this->getDefaultImage()) {
            $aParams['d'] = $this->getDefaultImage();
        }

        if (null !== $this->getMaxRating()) {
            $aParams['r'] = $this->getMaxRating();
        }

        if ($this->forcingDefault()) {
            $aParams['f'] = 'y';
        }

        return (null !== $this->sExtension ? '.'.$this->sExtension : '')
            .(empty($aParams) ? '' : '?'.http_build_query($aParams, '', '&amp;'));
    }
361820
public function getParams()
    {
        if(!$this->params)
            $this->params = $this->getMethod() == 'GET' ? $this->getQueryParams() : array_merge($this->getQueryParams(), $this->getParsedBody());

        return $this->params;
    }
1106424
public function getServerParams()
    {
        if ($this->serverParams === null) {
            if ($this->serverParamsProvider !== null) {
                $this->serverParams = ($this->serverParamsProvider)();
            } else {
                $this->serverParams = [];
            }
        }
        return $this->serverParams;
    }
1041018
public function getParamNames(): array
    {
        $names = [];

        foreach ($this->getPublicProperties() as $param) {
            $names[] = $param->getName();
        }

        return $names;
    }
768741
public function getQueryParameters(): array
    {
        $url = $this->getUrl();
        if (false === ($index = strpos($url, '?'))) {
            return [];
        }

        parse_str(substr($url, $index + 1), $queryParams);

        return $queryParams;
    }
460268
public function getParams()
	{
		if (!($this->params instanceof Registry))
		{
			$temp = new Registry;
			$temp->loadString($this->params);
			$this->params = $temp;
		}

		return $this->params;
	}
1342992
public function getParams()
    {
        $params = [];
        foreach ($this as $key => $value) {
            $pname = (string) ltrim(strtolower(preg_replace('/[A-Z]/', '_$0', $key)), '_');
            $params[$pname] = $value;
        }
        return $params;
    }
370667
public function getDataParams()
    {
        $method = $_SERVER['REQUEST_METHOD'];

        switch ($method) {
            case "POST":
                $this->dataParameters = $this->getPostFromInput();
                break;

            case "PUT":
            case "DELETE":
                $this->dataParameters = $this->getPostFromInput();
                break;
        }
    }
571464
public function get_url_params() {
        $args = array(
            'id' => $this->course->id
        );
        if (!empty($this->instancefilter)) {
            $args['ifilter'] = $this->instancefilter;
        }
        if (!empty($this->rolefilter)) {
            $args['role'] = $this->rolefilter;
        }
        if ($this->searchfilter !== '') {
            $args['search'] = $this->searchfilter;
        }
        if (!empty($this->groupfilter)) {
            $args['filtergroup'] = $this->groupfilter;
        }
        if ($this->statusfilter !== -1) {
            $args['status'] = $this->statusfilter;
        }
        return $args;
    }