private function getEnabledPlatforms(Scalr_Environment $environment)
{
$enabled = [];
foreach (array_keys(SERVER_PLATFORMS::getList()) as $platform) {
$value = $this->db->GetOne("\n SELECT value\n FROM client_environment_properties\n WHERE env_id = ? AND `group` = ''\n AND name = ?\n LIMIT 1\n ", [$environment->id, $platform . '.is_enabled']);
if (!empty($value)) {
$enabled[] = $platform;
}
}
return $enabled;
}