public static function loadAdapters() { if (!self::$scanned) { $path = dirname(__FILE__) . '/adapters/'; $adapters = JFolder::files($path, '\\.php$', false, true); foreach ($adapters as $adapter) { include_once $adapter; } self::$scanned = 1; } return self::$adapters; }