/** * Get the config values for an object or for all objects * * @param string $object_guid The object to get config values of * * @return array|mixed The config values */ static function getValues($object_guid) { static $dirty = null; // Check values status, only once per request if ($dirty === null && self::getValuesCacheStatus() === self::STATUS_DIRTY) { self::refreshDataCache(); $dirty = false; } // Check if all the keys exist if (empty(self::$hosts)) { $hosts = SHM::get("config-values-__HOSTS__"); if (empty($hosts)) { self::refreshDataCache(); } else { self::$hosts = $hosts["content"]; } } // For a single host if (empty(self::$values[$object_guid])) { $_values = SHM::get("config-values-{$object_guid}"); self::$values[$object_guid] = $_values["content"]; } return self::$values[$object_guid]; }