public static function OpenDB($dbname = "stitch", $user = "******", $password = "******", $host = "localhost") { $obj = new self($dbname, $host, $user, $password); if ($obj->SQLConnect()) { $obj->SetDBCharset(); // Please note: This method has been added here to propogate the specified database character set everywhere throughout the application (plugin & report database connections) return null; } $obj->UseDB($dbname); return $obj; }