Get the configuration value represented by the given configKey
@param string $configKey
@param null|string|bool|int|Mage_Core_Model_Store $store
@return string
494659
public function getConfigFlag($configKey, $store = null)
    {
        // if a value is given store, use it, even if it is null/false/empty string/whatever
        $store = count(func_get_args()) > 1 ? $store : $this->getStore();
        return $this->_getStoreConfigValue($configKey, $store, true);
    }
716397
public static KeyStore keyStore(AbstractConfig config, String key) {
    final String keyStoreType = config.getString(key);
    try {
      return KeyStore.getInstance(keyStoreType);
    } catch (KeyStoreException e) {
      ConfigException exception = new ConfigException(
          key,
          keyStoreType,
          "Invalid KeyStore type."
      );
      exception.initCause(e);
      throw exception;
    }
  }
26189
public function getConfig($key) {
        return isset($this->_config[$key]) ? $this->_config[$key] : null;
    }
1209784
public static function configGet($key)
    {
		$data = self::getDbConnection()->fetchAssoc('SELECT value FROM config WHERE `class` = ? and `key` = ?', array( get_called_class(), $key ));
		if (!$data) return null;
		return unserialize($data['value']);
    }
1069236
private function getValue ($key)
    {
        return isset($this->configuration[$key])
            ? $this->configuration[$key]
            : null;
    }
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;
    }
1276228
public function getTtlByKey($confCache, $cacheKey)
	{
	    $ttl = 0;
	    $config =  $this->getServiceLocator()->get('config');
	    if (!empty($config['caches']) && !empty($config['caches'][$confCache]))
	    {
	        $conf = $config['caches'][$confCache];
	         
	        // Get default ttl from adapater config
	        if (!empty($conf['adapter']['options']['ttl']))
	            $ttl = $conf['adapter']['options']['ttl'];
	        
	        foreach ($conf['ttls'] as $nameKey => $tll)
	        {
	            preg_match("/$nameKey/", $cacheKey, $matches, PREG_OFFSET_CAPTURE, 3);
	            
	            if (count($matches) > 0)
	            {
	                $ttl = $conf['ttls'][$nameKey];
	                break;
	            }
	        }
	    }
	    
	    return $ttl;
	}
711589
protected function getConfig($key, $defaultValue = null)
    {
        $config = $this->readConfig();
        
        return isset($config[$key]) ? $config[$key] : $defaultValue;
    }
754014
public function getConfigValue($key, $websiteId = null)
    {
        try {
            if (!$websiteId) {
                $websiteId = $this->storeManager->getWebsite()->getId();
            }

            return $this->scopeConfig->getValue('emartech/emarsys/config/' . $key, 'websites', $websiteId);
        } catch (\Exception $e) {
            return '';
        }
    }
272821
public function getCfgValue($key, $default = null)
    {
        $value = $default;

        $cfg = $this->config->getCfg();

        if ($cfg) {
            $value = $cfg->get($key, $default);
        }

        return $value;
    }
1233022
protected function _getHmacKey(Mage_Core_Model_Store $store)
    {
        $adyenHelper = Mage::helper('adyen');
        switch ($adyenHelper->getConfigDataDemoMode()) {
            case true:
                $secretWord = trim($adyenHelper->getConfigData('secret_wordt', 'adyen_hpp'));
                break;
            default:
                $secretWord = trim($adyenHelper->getConfigData('secret_wordp', 'adyen_hpp'));
                break;
        }

        return $secretWord;
    }
538157
public static function getDescriptionByKey($configKey)
    {
        $configKey = strtoupper($configKey);
        if (isset(self::$availableKeyList[$configKey])) {
            return self::$availableKeyList[$configKey];
        } else {
            return false;
        }
    }
328956
protected function getConfig($key = null)
    {
        if (!is_null($key)) {
            if (!array_key_exists($key, $this->config)) {
                throw new \InvalidArgumentException('Config key "'.$key.'" does not exist. Valid keys are: "'.implode(', ', array_keys($this->config)).'"');
            }

            return $this->config[$key];
        }

        return $this->config;
    }
1171240
protected function _getConfig($key = null) {
		$language = Configure::read('Config.language');
		$key = (string)$key;

		if ($key === 'Language') {
			if (empty($language)) {
				return null;
			}

			$configs = $language;
		} else {
			$configPath = $this->_modelConfigSettingsApp->getNameConfigKey();
			if (!empty($key)) {
				$configPath .= '.' . $key;
			}

			$configs = Configure::read($configPath);
			if ($configs === null) {
				return null;
			}

			if (empty($key)) {
				$configs['Language'] = $language;
			}
		}

		if (!empty($key)) {
			$configs = [$key => $configs];
		}

		$listSerializedFields = $this->_modelConfigSettingsApp->getListSerializeFields();
		$result = [];
		foreach ($configs as $configName => $configValue) {
			switch ($configName) {
				case 'EmailSmtppassword':
					if (!empty($configValue)) {
						$result[$this->alias][$configName] = Security::decrypt(base64_decode($configValue), Configure::read('Security.key'));
					} else {
						$result[$this->alias][$configName] = $configValue;
					}
					break;
				default:
					if (in_array($configName, $listSerializedFields) && !empty($configValue)) {
						$configValue = unserialize($configValue);
					}
					$result[$this->alias][$configName] = $configValue;
			}
		}

		if (!empty($key)) {
			return Hash::get($result, $this->alias . '.' . $key);
		}

		if (empty($result)) {
			return null;
		}

		return $result;
	}
419349
def get_config_value(self, k, i):
        """"""
        if(not isinstance(self.store[k], list)):
            return self.store[k]
        else:
            return self.store[k][i]
1174509
protected function getConfigOption(array $config, $key)
    {
        if (empty($config[$key]) || !is_string($config[$key])) {
            throw new \DomainException(
                "$key must be a non-empty string"
            );
        }
        return $config[$key];
    }
1108964
protected function _getConfigValueArrayMultiple($configKey = null) {
		$result = $this->_getConfigValueArray($configKey);
		if ((count($result) > 0) && (count($result) === count($result, COUNT_RECURSIVE))) {
			$result = [$result];
		}

		return $result;
	}