Returns a parameter value.

@param string $name
@param string $default
@param bool $optional
@return string
@throws InvalidParameterException
425629
public function getParam($name, $default = null, $optional = false)
    {
        if (isset($this->params[$name])) {
            return $this->params[$name];
        } elseif (!$optional) {
            throw new InvalidParameterException("Parameter '{$name}' is missing or invalid");
        } else {
            return $default;
        }
    }
86215
public static function getConfig(array $options, string $name, $default = null)
    {
        $options = self::normalize($options);
        if (array_key_exists($name, $options)) {
            return $options[$name];
        }

        return $default;
    }
541973
protected function getParameter($name, $defaultValue)
    {
        return $this->hasRequestParameter($name)
            ? html_entity_decode($this->getRequestParameter($name))
            : $defaultValue;
    }
795354
protected static function getOption($name, $default = null)
    {
        return isset(self::$options[$name]) ? self::$options[$name] : $default;
    }
714867
public static function getString($name, $default = null)
    {
        if (isset($_GET[$name]) && $_GET[$name] !== '') return self::parseInputToString($_GET[$name]);
        return $default;
    }
1310021
public function getParam($name) {
        if (empty($name) || !is_string($name)) {
            throw new \InvalidArgumentException('Paramater name must be not empty string');
        }

        if (isset($this->params[$name]) || array_key_exists($name, $this->params)) {
            return $this->params[$name];
        }
        throw new ConfigurationException(sprintf('Parameter %s doesn\'t exists', $name));
    }
501793
public function value($name, $default = null)
    {
        if (! is_null($value = $this->valueFromOld($name))) {
            return $value;
        }

        if (! is_null($value = $this->valueFromModel($name))) {
            return $value;
        }
        return $default;
    }
1245274
protected function getRequestParamValue(string $defaultValue = null, string $defaultName = 'id'): ?string
    {
        $paramName = $this->getRequestParamName($defaultName);

        return $this->request->get($paramName, $defaultValue);
    }
408128
public function getParameter($name, $filter = null, $default = false)
  {
    if (!$this->hasParameter($name) || is_array($this->parameters[$name])) {
      return $default;
    }

    $v = $this->parameters[$name];

    return Filter::Value($v, $filter, $default);
  }
803077
public function get(string $name, $default = null)
    {
        return isset($this->options[$name]) ? $this->options[$name] : $default;
    }
1344477
public function getValueByName(string $name, $default = null)
    {
        if (isset($this->values[$name])) {
            return $this->parseType($this->values[$name]);
        }

        return $default;
    }
505850
private function getParameterValue(array $parameter, $name, $default = null)
    {
        if (!array_key_exists($name, $parameter)) {
            return $default;
        }

        return $parameter[$name]->getValue();
    }
190003
public function paramName($name, $default = null)
    {
        if (($extName = $this->propertyName($name)) && substr($extName, 0, 1) == ':') {
            return substr($extName, 1);
        }

        return $default;
    }
37221
public function getConfigParam($name, $default = null)
    {
        $this->init();

        if (isset($this->_aConfigParams[$name])) {
            $value = $this->_aConfigParams[$name];
        } elseif (isset($this->$name)) {
            $value = $this->$name;
        } else {
            $value = $default;
        }

        return $value;
    }
1272300
public function getFileParam($name, $optional = false)
    {
        $value = $this->getParam($name, null, $optional);
        if ($value !== null) {
            if (!is_array($value)) {
                throw new InvalidParameterException("Parameter '{$name}' is invalid");
            }
        }
        return $value;
    }
117278
public static function buildPHPINIValue($name, $expectedValue, $optional = false)
    {
        $returnValue = null;

        
        $returnValue = new common_configuration_PHPINIValue($expectedValue, $name, $optional);
        

        return $returnValue;
    }
1360506
public function getParam($name, $default = null)
    {
        if (\is_array($this->params)) {
            // Check in params that are arrays or implement array access
            return $this->params[$name] ?? $default;
        } elseif (\is_object($this->params)) {
            // Check in normal objects
            return $this->params->{$name} ?? $default;
        } else {
            // Wrong type, return default value
            return $default;
        }
    }