Get configured value.

@param string $name
The name of the configured variable to get the value of.

@param string $addon
[optional]
Addon of which to search the configuration for the variable.

@return mixed The configured value or null if not found.
513762
public static function getConfigurationValue(string $name, $addon = null)
    {
        return self::getConfigurationValueOrDefault($name, null, $addon);
    }
373613
public function config($name, $value = null) {
        if (is_array($name)) {
            $this->config = array_merge($this->config, $name);
        }
        elseif (is_null($value)) {
            return isset($this->config[$name]) ? $this->config[$name] : null;
        }
        else {
            $this->config[$name] = $value;
        }
    }
1048484
public function delValue($name)
    {
        $value = null;

        if ($this->hasConfig($name)) {
            $value = $this->getValue($name);

            unset($this->config[$name]);
        }

        return $value;
    }
1187118
public function getAjaxConfig($name = null)
    {
        if (!is_null($name)) {
            return isset($this->ajaxConfig[$name]) ? $this->ajaxConfig[$name] : null;
        }
        
        return $this->ajaxConfig;
    }
554799
protected function getValue(string $name) : ?string
    {
        $checkName = $this->envPrefix . strtoupper($name);
        return $this->environmentVariables[$checkName] ?? null;
    }
818747
public function getVar($name = null)
    {
        $context = $this->_context;

        if ($name === null) {
            return $context->vars;
        } else {
            return isset($context->vars[$name]) ? $context->vars[$name] : null;
        }
    }
938644
public function getConfigValue($name, $default = null, $domain = null)
    {
        if ($domain === null) {
            $domain = $this->getDomain();
        } else if ($domain === false) {
            $domain = '__default__';
        }

        $domain = strtolower($domain);

        if (isset($this->values[$domain]) && array_key_exists($name, $this->values[$domain])) {
            return $this->values[$domain][$name];
        }

        // already tried to fetch this property without success
        if (isset($this->undefined[$domain][$name])) {
            return $default;
        }

        // Find the matching node
        $xpathName = $this->xpathQuote($name);
        if ($domain == '__default__') {
            $node = $this->getNode("./property[@name = $xpathName and not(@domain)]");
        } else {
            $xpathDomain = $this->xpathQuote($domain);
            $node = $this->getNode("./property[@name = $xpathName and @domain = $xpathDomain]");

            if (!$node instanceof xml\SimpleXmlElement) {
                $node = $this->getNode("./property[@name = $xpathName and not(@domain)]");
            }
        }

        // node was not found?
        if (!$node instanceof xml\SimpleXmlElement) {
            $this->undefined[$domain][$name] = true;
            return $default;
        }

        // extract the node value by type
        $type = (string)$node['type'];
        switch ($type) {
            case 'array':
            case 'instance':
                $value = $node->toPhpValue($type);
                break;

            case '':
                $type = 'string';
                // break intentionally omitted

            default:
                $value = $node->toValue($type, 'value');
                break;
        }

        $this->values[$domain][$name] = $value;
        return $value;
    }
754636
public function projectConfig($name)
    {
        if (isset($this->projectConfig)) {
            return $this->projectConfig->get($name);
        } else {
            return null;
        }
    }
1141895
public function getVariable($name) {
		if (isset($this->variables[$name])) {
			return $this->variables[$name];
		} else {
			return null;
		}
	}
350501
public function getConfig(string $name)
	{
		if (isset($this->store[$name])) {
			return $this->store[$name];
		}
		return null;
	}
669497
public static function getValueForName($name)
    {
        foreach (self::getConstants() as $constant) {
            if ($constant['name'] === $name) {
                return $constant['value'];
            }
        }
        return false;
    }
608373
public function getVar($name)
    {
		$this->loadVars();
    
        if (isset($this->_config[$name])) {
            return $this->_config[$name];
        } else {
            return false;
        }
    }
1008892
public function getOption($name, $default = null)
    {
        $config = $this->getConfig();

        return array_key_exists($name, $config) ? $config[$name] : $default;
    }
768861
public function &get($name)
    {
        if (!isset($this->mergedSettings[$name])) {
            $this->mergedSettings[$name] = array();
        }

        $result =& $this->mergedSettings[$name];
        return $result;
    }
1173822
public function get(string $name) : string
    {
        $result = $this->configCommand($name);

        return $result->getBufferedOutput()[0];
    }
230526
public function getPropertyValue(string $name) {
		if (isset($this->values[$name])) {
			return $this->values[$name];
		}
		return null;
	}
818040
public function getConfig($name)
    {
        $setting = $this->settings;
        return isset($setting[$name]) ? $setting[$name] : null;
    }