private static function checkValueInconfiguration($_key, $_value) { if (!is_array(self::$jeedomConfiguration)) { self::$jeedomConfiguration = array(); } if (isset(self::$jeedomConfiguration[$_key])) { return self::$jeedomConfiguration[$_key]; } if (is_array($_value)) { foreach ($_value as $key => $value) { $_value[$key] = self::checkValueInconfiguration($_key . ':' . $key, $value); } self::$jeedomConfiguration[$_key] = $_value; return $_value; } else { $config = config::byKey($_key); return $config == '' ? $_value : $config; } }