You are here

public function TransactionSettings::__construct in Drupal driver for SQL Server and SQL Azure 8

Same name and namespace in other branches
  1. 8.2 drivers/lib/Drupal/Driver/Database/sqlsrv/TransactionSettings.php \Drupal\Driver\Database\sqlsrv\TransactionSettings::__construct()

Summary of __construct

Parameters

mixed $Sane:

DatabaseTransactionScopeOption $ScopeOption:

DatabaseTransactionIsolationLevel $IsolationLevel:

File

drivers/lib/Drupal/Driver/Database/sqlsrv/TransactionSettings.php, line 21

Class

TransactionSettings
Behaviour settings for a transaction.

Namespace

Drupal\Driver\Database\sqlsrv

Code

public function __construct($Sane = FALSE, DatabaseTransactionScopeOption $ScopeOption = NULL, DatabaseTransactionIsolationLevel $IsolationLevel = NULL) {
  $this->_Sane = $Sane;
  if ($ScopeOption == NULL) {
    $ScopeOption = DatabaseTransactionScopeOption::RequiresNew();
  }
  if ($IsolationLevel == NULL) {
    $IsolationLevel = DatabaseTransactionIsolationLevel::Unspecified();
  }
  $this->_IsolationLevel = $IsolationLevel;
  $this->_ScopeOption = $ScopeOption;
}