Get the value of a setting or if setting does not exist,
return the value of the $defaultValue parameter.

@param string $name
@param mixed $defaultValue
@return mixed
355211
protected function getSettingValue($name, $defaultValue = NULL) {
		return TRUE === isset($this->settings[$name]) ? $this->settings[$name] : $defaultValue;
	}
390173
public String getString(String name, String defaultValue) {
		return config.getString(name, defaultValue);
	}
93203
public function getCookie($name = null, $defaultValue = null) 
    {
        if ($name === null) {
            return $_COOKIE;
        }
        return (isset($_COOKIE[$name])) ? $_COOKIE[$name] : $defaultValue;
    }
799899
public function param(string $name, $defaultValue = null)
    {
        return $this->parsedUri->queryString()->param($name, $defaultValue);
    }
1148965
def get_config_value(self, name, defaultValue):
    
    self.send_get_config_value(name, defaultValue)
    return self.recv_get_config_value()
404275
public function getListValue($name, $default = null)
    {
        $category = $this->getCategory();

        $list = $this->getCategoryConfig($category);

        foreach ($list as $context => $config) {
            $list[$context] = $this->getValue($context, $name, $default);
        }

        return $list;
    }
194959
protected function get_config($name, $default = null) {
        $value = get_config($this->component, $name);
        if ($value !== false) {
            return $value;
        }
        return $default;
    }
71187
public static function get($name = null, $default = null)
    {
        self::init();

        if (!$name) {
            return self::$config;
        } else {
            if (isset(self::$config[$name])) {
                return self::$config[$name];
            } else {
                return $default;
            }
        }
    }
1346135
public function getSettingValue($name, $default = false)
    {
        $settingValue = $this->manager->getCachedValue($name);

        if ($settingValue) {
            return $settingValue;
        }

        return $default;
    }
97252
public static function pageGet(string $name, $defaultValue = null, ?string $page = null)
    {
        if ($page === null) {
            $page = $_SERVER['PHP_SELF'];
        }
        return self::get($name, $defaultValue, $page);
    }
1002376
protected function getMultipleRawOptionValue($name, $value, $defaultValue)
    {
        $modelVariable = $this->getSingularVariable($this->modelName);
        $valueString = 'null';

        if (!is_null($value)) {
            $valueString = starts_with($value, '$') ? sprintf("%s", $value) : sprintf("'%s'", $value);
        }

        $defaultValueString = '[]';

        if (!empty($defaultValue)) {
            $joinedValues = implode(',', Helpers::wrapItems((array) $defaultValue));
            $defaultValueString = sprintf('[%s]', $joinedValues);
        }

        $accessor = $this->getDefaultValueAccessor($modelVariable, $name, $defaultValueString);

        return sprintf("in_array(%s, old('%s', %s) ?: [])", $valueString, $name, $accessor);
    }
631312
public function get($component, $name, $defaultValue = null)
    {
        $this->load();

        $propertyKey = sprintf('%s__%s', $component, $name);

        if (isset($this->properties[$propertyKey])) {
            return $this->properties[$propertyKey]->getValue();
        }

        return $defaultValue;
    }
15558
public function get($name = null, $defaultValue = null)
    {
        if ($name == null) return $_GET;
        $rs = isset($_GET[$name]) ? $_GET[$name] : $defaultValue;
        //Collect.category_id 获取 Collect[category_id]
        if ($rs == null && stripos($name, '.') > 0) {
            $arr = explode('.', $name);
            $rs2 = $_GET[$arr[0]];
            if (isset($rs2[$arr[1]])) {
                $rs = $rs2[$arr[1]];
            }
        }
        return $rs;
    }
1006920
public function get(string $name, $default = null)
    {
        return $this->has($name) ? $this->values[$name] : $default;
    }
1014358
public function get($name, $default = null)
    {
        if (false === $this->has($name)) {
            return $default;
        }

        return $this->vars[$name];
    }
727963
public function getValue($name, $default = 0)
    {
        $current = $this->read($name, $default);

        return $this->update($name, $current + 1);
    }
318467
protected function env($name, $defaultValue = null)
    {
        $value = getenv($name);

        if (null === $value || false === $value) {
            return $defaultValue;
        }

        return $value;
    }