public static function getInstance($config) { if (!isset(self::$_instance)) { $c = __CLASS__; self::$_instance = new $c($config); } return self::$_instance; }