+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* @copyright David Strauss <david@fourkitchens.com> (c) 2007
* $Id$
*
class CRM_Core_Transaction {
/**
- * These constants represent phases at which callbacks can be invoked
+ * These constants represent phases at which callbacks can be invoked.
*/
const PHASE_PRE_COMMIT = 1;
const PHASE_POST_COMMIT = 2;
private $_pseudoCommitted = FALSE;
/**
- * Ensure that an SQL transaction is started
+ * Ensure that an SQL transaction is started.
*
* This is a thin wrapper around __construct() which allows more fluent coding.
*
}
/**
- * Ensure that an SQL transaction is started
+ * Ensure that an SQL transaction is started.
*
* @param bool $nest
* Determines what to do if there's currently an active transaction:.
}
/**
- * Immediately commit or rollback
+ * Immediately commit or rollback.
*
* (Note: Prior to 4.6, return void)
*
* use it again.
*
* @param string $callable
- * Should exception one paramter (CRM_Core_Transaction $tx).
+ * Should exception one parameter (CRM_Core_Transaction $tx).
* @return CRM_Core_Transaction
* @throws Exception
*/
}
/**
- * Determine whether there is a pending transaction
+ * Determine whether there is a pending transaction.
*/
static public function isActive() {
$frame = \Civi\Core\Transaction\Manager::singleton()->getFrame();
}
/**
- * Add a transaction callback
+ * Add a transaction callback.
*
* Note: It's conceivable to add callbacks to the main/overall transaction
* (aka $manager->getBaseFrame()) or to the innermost nested transaction