gets a parameter/value pair for usage in a URL query string

@param string $parameterName
@param mixed $parameterValue

@return string

@throws \Exception If the given parameterValue cannot be converted for the path
176649
protected function getPathParameter($parameterName, $parameterValue)
    {
        if (true === is_scalar($parameterValue)) {
            return $this->getScalarPathParameter($parameterName, $parameterValue);
        } elseif (true === is_array($parameterValue)) {
            return $this->getArrayPathParameter($parameterName, $parameterValue);
        }

        throw new \Exception(
            sprintf(
                'The setting of parameter %s (%s) is currently not supported!',
                $parameterName,
                gettype($parameterValue)
            ),
            1367354994
        );
    }
1043056
public function getParameter($key, $defaultValue = null)
    {
        if (array_key_exists($key, $this->postParameters)) {
            return $this->postParameters[$key];
        }

        if (array_key_exists($key, $this->getParameters)) {
            return $this->getParameters[$key];
        }

        return $defaultValue;
    }
1155282
@Override
    public Object getValue(String paramName) throws IllegalArgumentException {
        if (!hasValue(paramName)) {
            throw new IllegalArgumentException("Can't find criteria with name " + paramName);
        }
        if (LIMIT_NAME.equals(paramName)) {
            return limit;
        }
        if (OFFSET_NAME.equals(paramName)) {
            return offset;
        }
        return criterias.get(paramName).getValue();
    }
49335
public function getByName($name)
    {
        $name = (string) $name;

        if (substr($name, 0, 1) !== ':') {
            $name = ':' . $name;
        }

        if (!isset($this->parametersByName[$name])) {
            throw new \Exception('Parameter is not defined !');
        }

        return $this->parametersByName[$name];
    }
344662
private String getParameter(String paramKey, String defaultValue) {
        String paramValue = defaultValue;
        if (StringUtils.isNotBlank(paramKey) && args != null && args.length > 0) {
            for (String arg : args) {
                String[] parameter = arg.split("=");
                if (parameter != null && parameter.length == 2 && paramKey.equals(parameter[0])) {
                    paramValue = parameter[1];
                    break;
                }
            }
        }
        return paramValue;
    }
215683
public function getEMailParam($name, $default = null, $optional = false)
    {
        $value = $this->getParam($name, $default, $optional);
        if ($value !== null) {
            if (!preg_match('/^.+@.+\...+$/', $value)) {
                throw new InvalidParameterException("Parameter '{$name}' is invalid");
            }
        }
        return $value;
    }
700896
public String getParam(String paramName) {
		if (requestParameters == null) {
			return null;
		}
		String[] values = requestParameters.get(paramName);
		if (ArrayUtil.isNotEmpty(values)) {
			return values[0];
		}
		return null;
	}
508924
public String query(String paramName, String defaultValue) {
        return this.request.query(paramName, defaultValue);
    }
1234693
protected function getParam($name, $defaultValue = null)
    {
        return $this->requestMethod == self::REQUEST_METHOD_GET ?
            Yii::$app->request->getQueryParam($name, $defaultValue) :
            Yii::$app->request->getBodyParam($name, $defaultValue);
    }
455180
public function getRequestParameter($name, $defaultValue = null)
    {
        if (isset($_POST[$name])) {
            $value = $_POST[$name];
        } elseif (isset($_GET[$name])) {
            $value = $_GET[$name];
        } else {
            $value = $defaultValue;
        }

        return $value;
    }
518178
public function addIndexedParameter($parameterName, $parameterValue, $parameterIndex)
    {
        $this->getParameter()->addItem(new PagSeguroParameterItem($parameterName, $parameterValue, $parameterIndex));
    }
344289
protected function getServer($param = null, $defaultValue = null)
    {
        if ($param === null) {
            return $this->getRequest()->getServer();
        }

        return $this->getRequest()->getServer($param, $defaultValue);
    }
350269
protected function getQuery($param = null, $defaultValue = null)
    {
        if ($param === null) {
            return $this->getRequest()->getQuery();
        }

        return $this->getRequest()->getQuery($param, $defaultValue);
    }
880788
public static String getString(HttpServletRequest request, String parameterName, String defaultValue) {
		String value = request.getParameter(parameterName);
		if (value == null || value.length() == 0) {
			return defaultValue;
		}
		else {
			return value;
		}
		// return StringUtils.isEmpty(value) ? defaultValue : value;
	}
83256
protected function _getFieldName($tableName, $paramValue)
    {
        $sResult = $tableName . '__' . $paramValue;
        if (strpos($paramValue, '__') !== false) {
            $sResult = $paramValue;
        }
        return strtolower($sResult);
    }
746817
@Override
    public String setParameterValue(String parameterName, String parameterValue) {
        // don't try to store a null value
        if (parameterValue == null) return null;
        return (String) parameters.put(parameterName, parameterValue);
    }
625392
public function getParameter($parameterName)
    {
        if (!isset($this->parameters[$parameterName])) {
            throw NoSuchParameterException::forParameterName($parameterName, $this->name);
        }

        return $this->parameters[$parameterName];
    }