| Versionen | |
|---|---|
| drupal7 | public DatabaseConnection::willRollBack() |
Determine if this transaction will roll back.
Use this function to skip further operations if the current transaction is already scheduled to roll back. Throws an exception if no transaction is active.
TRUE if the transaction will roll back, FALSE otherwise.
includes/
<?php
public function willRollBack() {
if ($this->transactionLayers == 0) {
throw new NoActiveTransactionException();
}
return $this->willRollBack;
}
?>
Kommentare
Kommentar hinzufügen