Inheritance: extends BaseTransaction
Esempio n. 1
0
 public static function start_transaction($implicit = false)
 {
     $transaction = new DBTransaction();
     $transaction->is_implicit = $implicit;
     $transaction->start();
     DBBase::$transaction_in_progress = $transaction;
 }
Esempio n. 2
0
File: DB.php Progetto: point/cassea
 /**
  * Закрытие транзакции
  *
  * @param DBTransaction 
  */
 public static function closeTransaction(DBTransaction $t)
 {
     if (!self::$mysqli instanceof mysqli) {
         self::$mysqli = $t->getConnection();
     }
 }