public static function disconnectDatabase() { if (isset(self::$db)) { self::$db->disconnect(); self::$db = null; } }
public static function disconnectCachedDbConnection() { // code redundancy w/ above is on purpose; above disconnectDatabase depends on method that can potentially be overridden if (!is_null(self::$db)) { self::$db->disconnect(); self::$db = null; } }