You are here

class Transaction in Drupal 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Database/Transaction.php \Drupal\Core\Database\Transaction
  2. 8 core/lib/Drupal/Core/Database/Driver/sqlite/Transaction.php \Drupal\Core\Database\Driver\sqlite\Transaction
  3. 8 core/lib/Drupal/Core/Database/Driver/pgsql/Transaction.php \Drupal\Core\Database\Driver\pgsql\Transaction
  4. 8 core/lib/Drupal/Core/Database/Driver/mysql/Transaction.php \Drupal\Core\Database\Driver\mysql\Transaction
  5. 8 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestMysql/Transaction.php \Drupal\driver_test\Driver\Database\DrivertestMysql\Transaction
  6. 8 core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Transaction.php \Drupal\driver_test\Driver\Database\DrivertestPgsql\Transaction

PostgreSQL implementation of \Drupal\Core\Database\Transaction.

Hierarchy

Expanded class hierarchy of Transaction

1 file declares its use of Transaction
Transaction.php in core/modules/system/tests/modules/driver_test/src/Driver/Database/DrivertestPgsql/Transaction.php
1 string reference to 'Transaction'
Connection::startTransaction in core/lib/Drupal/Core/Database/Connection.php
Returns a new DatabaseTransaction object on this connection.

File

core/lib/Drupal/Core/Database/Driver/pgsql/Transaction.php, line 10

Namespace

Drupal\Core\Database\Driver\pgsql
View source
class Transaction extends DatabaseTransaction {

}

Members

Namesort descending Modifiers Type Description Overrides
Transaction::$connection protected property The connection object for this transaction.
Transaction::$name protected property The name of the transaction.
Transaction::$rolledBack protected property A boolean value to indicate whether this transaction has been rolled back.
Transaction::name public function Retrieves the name of the transaction or savepoint.
Transaction::rollBack public function Rolls back the current transaction.
Transaction::__construct public function
Transaction::__destruct public function