Scalr\Upgrade\Updates\Update20150818090745::getEnabledPlatforms PHP Метод

getEnabledPlatforms() приватный Метод

private getEnabledPlatforms ( Scalr_Environment $environment )
$environment Scalr_Environment
    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;
    }