public function DatabaseTransactionSettings::__construct in Drupal driver for SQL Server and SQL Azure 7.2
Same name and namespace in other branches
- 7.3 sqlsrv/transaction.inc \DatabaseTransactionSettings::__construct()
Summary of __construct
Parameters
mixed $Sane:
DatabaseTransactionScopeOption $ScopeOption:
DatabaseTransactionIsolationLevel $IsolationLevel:
File
- sqlsrv/
transaction.inc, line 145
Class
- DatabaseTransactionSettings
- Behaviour settings for a transaction.
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;
}