Get config param(s)

@param  string               $s_key
@return string|array|boolean
16171
public function getConfig($s_key = null)
    {
        if ($s_key) {
            if (isset($this->st_viewConfig[$s_key])) {
                return $this->st_viewConfig[$s_key];
            }

            return false;
        }

        return $this->st_viewConfig;
    }
423014
public function getConfig($key)
    {
        if (!isset($this->config[$key])) {
            throw new \Exception(sprintf('No config found for key: "%s"', $key));
        }

        return $this->config[$key];
    }
26964
public function configHierarchical($key = null)
    {
        $config = [];
        $all = $this->config($key);
        if (! is_array($all)) $all = array($key => $all);
        foreach ($all as $_key => $_val) {
            $keys = explode('.', $_key);
            $value = &$config;
            while ($key = array_shift($keys)) {
                if ($keys) {
                    if (! isset($value[$key])) $value[$key] = [];
                    $value = &$value[$key];
                } else {
                    $value[$key] = $_val;
                }
            }
        }
        return $config;
    }
183220
public function getParam(String $key) {

		return $this->params[$key] ?? $this->httpErrors[$key] ?? null;

	}
1353874
public static function get($key = '')
    {
        if ($key === '') {
            return null;
        }

        $arr = explode('.', $key);

        $config_file = $arr[0];
        if (! isset(self::$settings[$config_file])) {
            self::addConfigFromFile($config_file);
        }

        $config_key_first = isset($arr[1]) ? $arr[1] : '';
        if ($config_key_first === '') {
            return null;
        }

        $value = isset(self::$settings[$config_file]->$config_key_first)
            ? self::$settings[$config_file]->$config_key_first : null;

        if (is_null($value)) {
            return null;
        }

        for ($i = 2; $i < count($arr); $i++) {
            $config_key = $arr[$i];
            if ($config_key == '') {
                return null;
            }
            $value = isset($value->$config_key) ? $value->$config_key : null;
            if (is_null($value)) {
                return null;
            }
        }

        return $value;
    }
380311
public static function get(string $key = null)
    {
        self::set();

        if (empty($key)) {
            return self::$config;
        }

        $keys  = explode('.', $key);
        $value = self::$config;

        foreach ($keys as $key) {
            if ( ! isset($value[$key])) {
                return null;
            }

            $value = $value[$key];
        }

        return $value;
    }
1146367
protected function getConfig($key = null, $default = null)
    {
        // check manually if a key is given and if it exists in the config
        // this has to be done to check for spoofed additional config keys so that null isn't returned
        if (!empty($key) && empty($this->config[$key])) {
            return $default;
        }

        return $key ? array_get($this->config, $key, $default) : $this->config;
    }
744694
protected function config(string $key)
    {
        $config = json_decode($this->header('config'), true);
        $definition = explode('.', $key);
        $item = isset($config[$definition[0]]) ? $config[$definition[0]] : null;

        $numberOfDefinitions = count($definition);

        for ($i = 1; $i < $numberOfDefinitions; ++$i) {
            $item = isset($item[$definition[$i]]) ? $item[$definition[$i]] : null;
        }

        return $item;
    }
27796
private function getParameter($key)
    {
        if (!key_exists($key, $this->configuration)) {
            throw new CasException(sprintf('The %s parameter must be defined. It is missing.', $key));
        }

        return $this->configuration[$key];
    }
145367
public function getParams($key = null)
	{
		if(is_null($key))
		{
			return $this->params;
		}

		return $this->params[$key];
	}
3437
protected function getParams($key = null)
    {
        $params = $this->session->get(uri());
        return !is_null($key) ? array_get($params, $key) : $params;
    }
1006253
public function get($key)
    {
        $key = is_array($key) ? $key : [$key];
        $config = $this->data;
        while ($key) {
            $k = array_shift($key);
            $config = isset($config[$k]) ? $config[$k] : [];
        }
        return $config;
    }
996959
protected function getParam($str_key, $str_default = null, $check_json_body = false)
    {
        $str_query = $this->getQuery($str_key);
        if (null !== $str_query) {
            return $str_query;
        }
        $str_post = $this->getPost($str_key);
        if (NULL !== $str_post) {
            return $str_post;
        }
        // Optionally check Json in Body
        if ($check_json_body && isset($this->getJson()->$str_key)) {
            if (null !== $this->getJson()->$str_key) {
                return $this->getJson()->$str_key;
            }
        }
        return $str_default;
    }
72469
protected function _configRead($key)
    {
        if ($key === null) {
            return $this->_config;
        }

        if (strpos($key, '.') === false) {
            return isset($this->_config[$key]) ? $this->_config[$key] : null;
        }

        $return = $this->_config;

        foreach (explode('.', $key) as $k) {
            if (!is_array($return) || !isset($return[$k])) {
                $return = null;
                break;
            }

            $return = $return[$k];
        }

        return $return;
    }
862874
final protected function getConfigValue(string $key)
    {
        $retval = false;

        if (isset($this->config[$key], $this->config[$key][ConfigurationInterface::KEY_VALUE])) {
            $retval = $this->config[$key][ConfigurationInterface::KEY_VALUE];
        } elseif (isset($this->config[$key])) {
            $retval = $this->config[$key];
        }

        return $retval;
    }
642439
public function getConfigList($key = null)
    {
        if (is_null($key)) {
            return $this->configList; // no key requested, return the entire configuration bag
        } elseif (empty($this->configList[$key])) {
            return null; // no such key
        } else {
            return $this->configList[$key]; // return the requested key
        }
    }
737838
public function getConfig(string $key = null)
    {
        if ($key) {
            return $this->getValue($key);
        }

        return $this->config;
    }