private function ConnectionSettings::__construct in Drupal driver for SQL Server and SQL Azure 8.2
Construct an instance of DriverSettings.
File
- drivers/
lib/ Drupal/ Driver/ Database/ sqlsrv/ ConnectionSettings.php, line 58
Class
- ConnectionSettings
- Global settings for the driver.
Namespace
Drupal\Driver\Database\sqlsrvCode
private function __construct($configuration) {
$this->_defaultIsolationLevel = $this
->CheckValid('default_isolation_level', $configuration['default_isolation_level'], array(
false,
PDO::SQLSRV_TXN_READ_UNCOMMITTED,
PDO::SQLSRV_TXN_READ_COMMITTED,
PDO::SQLSRV_TXN_REPEATABLE_READ,
PDO::SQLSRV_TXN_SNAPSHOT,
PDO::SQLSRV_TXN_SERIALIZABLE,
));
$this->_defaultDirectQueries = $this
->CheckValid('default_direct_queries', $configuration['default_direct_queries'], array(
true,
false,
));
$this->_defaultStatementCaching = $this
->CheckValid('default_statement_caching', $configuration['default_statement_caching'], array(
true,
false,
));
$this->_statementCachingMode = $this
->CheckValid('statement_caching_mode', $configuration['statement_caching_mode'], array(
'disabled',
'on-demand',
'always',
));
$this->_appendStackComments = $this
->CheckValid('append_stack_comments', $configuration['append_stack_comments'], array(
true,
false,
));
$this->_additionalDSN = $configuration['additional_dsn'];
}