willRollBack

  1. drupal
    1. drupal7
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.

Rückgabewert

TRUE if the transaction will roll back, FALSE otherwise.

Verwandte Themen

Code

includes/database/database.inc, line 878

<?php
public function willRollBack() {
  if ($this->transactionLayers == 0) {
    throw new NoActiveTransactionException();
  }

  return $this->willRollBack;
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen