You are here

class Transaction in Drupal 9

Same name in this branch
  1. 9 core/lib/Drupal/Core/Database/Transaction.php \Drupal\Core\Database\Transaction
  2. 9 core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/Transaction.php \Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses\Transaction

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

Hierarchy

  • class \Drupal\Core\Database\Transaction
    • class \Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses\Transaction

Expanded class hierarchy of Transaction

3 string references to 'Transaction'
Connection::getDriverClass in core/lib/Drupal/Core/Database/Connection.php
Gets the driver-specific override class if any for the specified class.
Connection::startTransaction in core/lib/Drupal/Core/Database/Connection.php
Returns a new DatabaseTransaction object on this connection.
ConnectionTest::providerGetDriverClass in core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
Data provider for testGetDriverClass().

File

core/tests/fixtures/database_drivers/module/corefake/src/Driver/Database/corefakeWithAllCustomClasses/Transaction.php, line 10

Namespace

Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses
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