public static function start_transaction($implicit = false) { $transaction = new DBTransaction(); $transaction->is_implicit = $implicit; $transaction->start(); DBBase::$transaction_in_progress = $transaction; }
/** * Закрытие транзакции * * @param DBTransaction */ public static function closeTransaction(DBTransaction $t) { if (!self::$mysqli instanceof mysqli) { self::$mysqli = $t->getConnection(); } }