get short-opt value(bool)
@param string $name
@param bool   $default
@return bool
487243
public function sBoolOpt(string $name, $default = false): bool
    {
        $val = $this->sOpt($name);

        return \is_bool($val) ? $val : (bool)$default;
    }
928165
public function findOption(string $name, $default = null)
    {
        if (array_key_exists($name, $this->options)) {
            return $this->options[$name];
        }

        return $default;
    }
35679
public function getWithDefault($name, $default)
    {
        $value = NestedArrayUtil::getNestedArrayValue(self::$config, explode('.', $name), $exists);
        if (!$exists) {
            return $default;
        }

        return $value;
    }
375020
public function get( $name, $default = null )
	{
		if( array_key_exists( $name, $this->_data ) !== false ) {
			return $this->_data[$name];
		}

		return $default;
	}
1179916
public function get(string $name, $default = null)
    {
        return ($this->exists($name)) ? $this->map[$name] : $default;
    }
479482
public function get ($name, $default = null)
		{
			foreach ($this->_data as $d)
			{
				if ($d->name === $name)
					return $d->value;
			}

			return $default;
		}
168136
public function get( $name, $default = null )
	{
		if( ( $entry = $this->object->get( $this->prefix . $name ) ) !== false ) {
			return $entry;
		}

		return $default;
	}
1368645
public function getOption(string $short, string $long, $default = null)
    {
        $this->validateShortAndLong($short, $long);
        $getopt = $this->getopt();
        if (array_key_exists($short, $getopt)) {
            return $getopt[$short];
        }
        if (array_key_exists($long, $getopt)) {
            return $getopt[$long];
        }

        return $default;
    }
1213483
public function getConfig($name, $default = false)
    {
        foreach ($this->configs as $config) {
            if ($config->getName() == $name) {
                return $config->getValue();
            }
        }

        return $default;
    }
150245
public static function get($name = null, $default = false)
	{
		if(isset(self::$modifys[$name]))
		{
			return self::$modifys[$name];
		}
		else if(array_key_exists($name,self::$modifys))
		{
			return $default;
		}
		else
		{
			self::init();
			self::save();
			if(null === $name)
			{
				return $_SESSION;
			}
			$names = parseCfgName($name);
			$var = $_SESSION;
			foreach($names as $name)
			{
				if('@' === $name)
				{
					$name = self::$prefix;
				}
				if('' !== $name)
				{
					$var = $var[$name];
				}
			}
			return isset($var) ? $var : $default;
		}
	}
968766
private function getValue ($name, $default)
	{
		$parts = explode ('.', $name);
		$file = array_shift ($parts);

		$this->loadFile ($file);

		if (! isset ($this->files[$file])) {
			return $default;
		}
		else {
			$out = $this->files[$file];
			foreach ($parts as $part)
			{
				if (!isset ($out[$part]))
				{
					return $default;
				}
				else {
					$out = $out[$part];
				}
			}
		}

		return $out;
	}
981337
public function getValue(string $name, $default = null)
    {
        $value = Arr::getByPath($this->config, $name, $default);

        if ($value && $value instanceof \Closure) {
            $value = $value();
        }

        return $value;
    }
256124
public function getOption($name, $default = null)
    {
        $data = new Data((array)get_option($this->registry['option_name']));
        return $data->get($name, $default);
    }
1346135
public function getSettingValue($name, $default = false)
    {
        $settingValue = $this->manager->getCachedValue($name);

        if ($settingValue) {
            return $settingValue;
        }

        return $default;
    }
1181209
public function pull($name, $default = null)
    {
        $result = $this->get($name, false);
        if ($result) {
            $this->delete($name);

            return $result;
        } else {
            return $default;
        }
    }
795354
protected static function getOption($name, $default = null)
    {
        return isset(self::$options[$name]) ? self::$options[$name] : $default;
    }
1089122
public function getValue($name, $default = null)
    {
        $setting = $this->get($name);

        if ($setting) {
            return $setting->getValue();
        }

        return $default;
    }