Build an absolute URL using the value of a form parameter.

@param string $parameterName the form parameter name
@param string $default a default value for the form parameter. If not defined, the configured base URL is used.
@return string an absolute URL
436094
public function getFormDefinedUrl($parameterName, $default = null)
    {
        $formDefinedUrl = $this->form->get($parameterName)->getData();

        if (empty($formDefinedUrl)) {
            if ($default === null) {
                $default = ConfigQuery::read('base_url', '/');
            }

            $formDefinedUrl = $default;
        }

        return URL::getInstance()->absoluteUrl($formDefinedUrl);
    }
1354799
private function getParam(string $name, string $default = null): ?string
	{
		return $this->request->getPost($name, $default);
	}
608358
public function url($default, $query = null, $fragment = null) {
		$url_query = (stristr($default, '?'))?'&':'?';

		if (is_array($query)) {
			$itter = 0;
			foreach ($query as $key => $value) { if ($itter == array_search( $key, $query )) {
				$itter++;
				$url_query .= $key.'='.$value;
			} else {
				$url_query .= '&'.$key.'='.$value;
			} }
		}

		if (isset($url_query) && strlen($url_query) > 1) {
			$url_query = (stristr(urldecode($default), substr($url_query, 1)))?'':$url_query;
		}

		$url = $default.((strlen( $url_query ) > 1)?$url_query:'').(($fragment)?'#'.$fragment:'');

		return $url;
	}
550247
public function get($parameter, $default = null)
    {
        if ('link' == $parameter) {
            return $this->getLink();
        }

        return isset($this->config[$parameter]) ? $this->config[$parameter] : $default;
    }
1073144
private function buildUrl($url, $parameters)
    {
        $prams_former = '?';

        foreach ($parameters as $key => $value) {
            $prams_former = $prams_former.$key.'='.$value.'&';
        }

        return $url.substr($prams_former, 0, -1);
    }
977958
public static function requestString($name, $default = null)
    {
        if (isset($_REQUEST[$name]) && $_REQUEST[$name] !== '') return self::parseInputToString($_REQUEST[$name]);
        return $default;
    }
806879
public function getParam($name, $default = null)
    {
        $params = $this->_context->params;
        return isset($params[$name]) ? $params[$name] : $default;
    }
1262844
private function buildUrlPatternStandard($methodName, array $parameters)
    {
        $url = $methodName;
        if ($this->normalize) {
            $url = PathTransformations::methodNameToUrl($methodName);
        }

        foreach ($parameters as $p) {
            $matchType = $p->matchPattern;
            $url = $url . '/' . $matchType;
        }

        return $url . '/';
    }
87805
public static function getPostParameter(string $name, string $default = null, array $allowed = null): string
    {
        return self::get('POST', $name, $default, $allowed);
    }
675455
public static function getHostParam($key, $default = null)
  {
    return (array_key_exists($key, $_SERVER) && !empty($_SERVER[$key])) ? $_SERVER[$key] : $default;
  }
1023135
public static function getGetParameter(string $name, string $default = null, array $allowed = null): string
    {
        return self::get('GET', $name, $default, $allowed);
    }
235951
public function getParameterValue(string $parameterName)
    {
        if (!$this->hasParameterValue($parameterName)) {
            return null;
        }

        return $this->parameterValues[$parameterName];
    }
627407
public static function post($name, $default = '') {
        $_POST = self::paramFilter($_POST);
        if (isset($_POST[$name])) {
            if (empty($_POST[$name])) {
                return $default;
            }
            return $_POST[$name];
        }
        return false;
    }
1171564
public function getParam($param, $default = null) 
    {
        if(array_key_exists($param, $this->params)) {
            return $this->params[$param];
        }
        
        return $default;
    }
490349
public function get($paramName = null, $default = null)
    {
        $result = $default;

        $params = $this->getRequestParams();

        if ($paramName === null) {
            $result = $params;
        } elseif (isset($params[$paramName])) {
            $result = $params[$paramName];
        }

        return $result;
    }
203053
public function header($name = null, $default = null) {
        if (null === $name) {
            return $this->getHeader();
        }
        $key = 'HTTP_' . str_replace('-', '_', strtoupper($name));
        return $_SERVER[$key] ?? $default;
    }
20456
protected function param($paramName)
    {
        $fallbacks = $this->getDefaultParamsNonPersistentCached();

        if ($paramName == 'content') {
            return $this->content
                ? $this->content
                : $fallbacks['content'];
        }

        if (isset($this->params[$paramName])) {
            return $this->params[$paramName];
        } elseif (isset($fallbacks[$paramName])) {
            return $fallbacks[$paramName];
        } else {
            return null;
        }
    }