Returns an array of parameters ready to be sent to the API.
@return array
508730
protected function attrsForApi($action) {
		$ret = array();
		$desc = $this->description->actions->{$action}->input->parameters;
		
		foreach($this->attrs as $k => $v) {
			if(!isSet($desc->{$k}))
				continue;
			
			$param = $desc->{$k};
			
			switch($param->type) {
				case 'Resource':
					$ret[$k] = $v->{ $param->{'value_id'} };
					break;
				
				default:
					$ret[$k] = $v;
			}
		}
		
		return $ret;
	}
1332725
public function getParameters()
    {
        $extendedParameters = [];
        foreach (parent::getParameters() as $parameter) {
            $extendedParameters[] = new ParameterReflection([$this->getDeclaringClass()->getName(), $this->getName()], $parameter->getName());
        }
        return $extendedParameters;
    }
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;
    }
248447
private function getHttpParameters()
    {
        if (empty($this->httpParameters)) {
            // Discover the parameters from the server data.
            $uri = $_SERVER['REQUEST_URI'];
            $paramsStart = strpos($uri, '?');
            if ($paramsStart !== false) {
                // Separate the parameters in the URL.
                parse_str(substr($uri, $paramsStart + 1), $this->httpParameters);
            }

            // Get POST parameters as well.
            $this->httpParameters = array_merge($this->httpParameters, $_POST);

            // Get files too.
            $this->httpParameters = array_merge($this->httpParameters, $_FILES);
        }

        return $this->httpParameters;
    }
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;
    }
748266
public function getParameters()
    {
        $params = explode("\n", trim($this->_response));

        foreach ($params as $param) {
            list($key, $val) = explode('=', $param, 2);
            $param_array[$key] = $val;
        }

        $param_array['identity'] = substr($param_array['otp'], 0, 12);

        return $param_array;
    }
311882
protected function getParameters()
    {
        $strings = array();

        foreach ($this->getParameterInfo() as $name => $parameter) {
            if ($parameter['type']) {
                $strings[] = ':type $' . $name . ': ' . $parameter['type'];
            }

            $string = ':param $' . $name . ':';

            if (isset($parameter['comment']) && $parameter['comment']) {
                $string .= ' ' . $parameter['comment'];
            }

             $strings[] = $string;
        }

        return $strings;
    }
1223164
public function getParams()
	{
		$ret = array();
		$query = $this->getComponent('query');

		if ( $query ) {
			parse_str($query, $ret);
		}

		return $ret;
	}
998284
public function getParams()
    {
        $params              = parent::getParams();
        $params['processor'] = $this->getProcessor();
        $params['message']   = $this->getMessage();
        $params['result']    = $this->getResult();
        return $params;
    }
308923
private function getSignableParameters()
    {
        // Grab all parameters
        $params = $this->request->getUri()->getQuery() . '&' . $this->request->getBody()->__toString();
        $params = Util::parseParameters($params);

        // Remove oauth_signature if present
        // Ref: Spec: 9.1.1 ("The oauth_signature parameter MUST be excluded.")
        if (isset($params['oauth_signature'])) {
            unset($params['oauth_signature']);
        }

        $params = array_merge($params, $this->additionalParams);

        return Util::buildHttpQuery($params);
    }
258375
public function getParameters(): array
    {
        if (null === $this->parameters) {
            $this->parameters = $this->extractArguments();
        }

        return $this->parameters;
    }
1365637
public function getBodyParameters() {
        $reqs = array();

        foreach ($this->requests as $r) {
            array_push($reqs, $this->requestToBatchArray($r));
        }

        $result = ['requests' => $reqs];

        if(isset($this->optional['distinctRecomms']))
            $result['distinctRecomms'] = $this->optional['distinctRecomms'];

        return $result;
    }
162331
public function getParameterValues()
    {
        $values = array();

        foreach ($this->parameters as $name => $parameter) {
            if (!$parameter->isRequired()) {
                $values[$name] = $parameter->getDefaultValue();
            }
        }

        return $values;
    }
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;
    }
339953
public function buildParameters()
    {
        $params = array();

        if (!empty($this->_attachments)) {
            $this->action = 'SendRawEmail';
            $params['RawMessage.Data'] = $this->_buildRaw();
            return $params;
        }


        $i = 1;
        foreach ($this->_to as $to) {
            $params['Destination.ToAddresses.member.' . $i] = $to;
            $i++;
        }

        $i = 1;
        foreach ($this->_cc as $cc) {
            $params['Destination.CcAddresses.member.' . $i] = $cc;
            $i++;
        }

        $i = 1;
        foreach ($this->_bcc as $bcc) {
            $params['Destination.BccAddresses.member.' . $i] = $bcc;
        }

        $i = 1;
        foreach ($this->_replyTo as $replyTo) {
            $params['ReplyToAddresses.member.' . $i] = $replyTo;
        }

        $params['Source'] = $this->_source;

        if ($this->_returnpath) {
            $params['ReturnPath'] = $this->_returnpath;
        }

        $params['Message.Subject.Data'] = $this->_subject;
        $params['Message.Subject.Charset'] = $this->_charset;

        if (strlen($this->_body)) {
            $params['Message.Body.Text.Data'] = $this->_body;
            $params['Message.Body.Text.Charset'] = $this->_charset;
        }

        if (strlen($this->_htmlBody)) {
            $params['Message.Body.Html.Data'] = $this->_htmlBody;
            $params['Message.Body.Html.Charset'] = $this->_charset;
        }

        return $params;
    }
1121907
private function getOAuthParams()
    {
        //this needs to be stateful until the request is signed, then it gets unset
        if (! isset($this->oauth_params)) {
            $this->oauth_params = [
                'oauth_consumer_key' => $this->getConsumerKey(),
                'oauth_signature_method' => $this->getSignatureMethod(),
                'oauth_timestamp' => $this->getTimestamp(),
                'oauth_nonce' => $this->getNonce(),
                'oauth_callback' => $this->getCallback(),
                'oauth_version' => self::OAUTH_VERSION,
            ];

            if (null !== $token = $this->getToken()) {
                $this->oauth_params['oauth_token'] = $token;
            }
            if (null !== $verifier = $this->getVerifier()) {
                $this->oauth_params['oauth_verifier'] = $verifier;
            }
        }

        return $this->oauth_params;
    }
30883
public function getParamsInfo(): array
    {
        $paramsInfo = [];

        foreach ($this->getParamNames() as $paramName) {
            $paramsInfo[$paramName] = $this->getParamInfo($paramName);
        }

        return $paramsInfo;
    }