$title, 'helperPath' => $helperPath, 'supported' => $supported ); if (!$missingExtensionText) $missingExtensionText = 'The PHP extension is missing, please enable or install it.'; if (!$missingModuleText) { $moduleName = array_shift(explode('/', $helperPath)); $missingModuleText = 'The SilverStripe module, '.$moduleName.', is missing or incomplete. Please download it.'; } self::$adapters[$class]['missingModuleText'] = $missingModuleText; self::$adapters[$class]['missingExtensionText'] = $missingExtensionText; } static function autodiscover() { foreach(glob(dirname(__FILE__).'/../../../*', GLOB_ONLYDIR) as $directory) { if (file_exists($directory.'/_register_database.php')) include_once($directory.'/_register_database.php'); } } static function adapters() { return self::$adapters; } }