/** * Commit the database changes done during a transaction that is in progress */ public static function commit() { self::connect(); if (!self::$inTransaction) { return false; } self::$connection->commit(); self::$inTransaction = false; }