/** * This method will forcibly close the connection of the database, so * that a new connection will be made when getInstance () is called. */ public static function restart() { self::$s_pInstance = null; // Force it to close. }