<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
namespace Civi\API\Subscriber;
private $forceRollback = array();
/**
- * Determine if an API request should be treated as transactional
+ * Determine if an API request should be treated as transactional.
*
* @param \Civi\API\Provider\ProviderInterface $apiProvider
* The API provider responsible for this request.
* The API provider responsible for this request.
* @param array $apiRequest
* The full API request.
- * @return bool True if a new nested transaction is required; false if active tx may be used
+ * @return bool
+ * True if a new nested transaction is required; false if active tx may be used
*/
public function isNested($apiProvider, $apiRequest) {
if ($this->isForceRollback($apiProvider, $apiRequest)) {
}
/**
- * Close any pending transactions
+ * Close any pending transactions.
*
* @param \Civi\API\Event\RespondEvent $event
* API response event.
}
/**
- * Rollback the pending transaction
+ * Rollback the pending transaction.
*
* @param \Civi\API\Event\ExceptionEvent $event
* API exception event.
unset($this->transactions[$apiRequest['id']]);
}
}
+
}