Scalr_Environment::getFullConfiguration PHP Method

getFullConfiguration() public method

Gets client_environment_properties
public getFullConfiguration ( ) : array
return array Returns all config entries
    public function getFullConfiguration()
    {
        $mustBeEncrypted = self::getEncryptedVariables();
        $res = $this->db->Execute("SELECT `name`, `value`, `group` FROM client_environment_properties WHERE env_id = ?", array($this->id));
        while ($item = $res->FetchRow()) {
            if (isset($mustBeEncrypted[$item['name']]) && $item['value'] !== null) {
                $item['value'] = $this->decryptValue($item['value']);
            }
            $this->cache[$item['group']][$item['name']] = $item['value'] !== false ? $item['value'] : null;
        }
        return $this->cache;
    }