You are here

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

Same name and namespace in other branches
  1. 4.2.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::__construct()
  2. 3.0.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::__construct()
  3. 3.1.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::__construct()
  4. 4.0.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::__construct()
  5. 4.1.x src/Plugin/views/query/SqlsrvDateSql.php \Drupal\sqlsrv\Plugin\views\query\SqlsrvDateSql::__construct()

Constructs the MSSQL-specific date sql class.

Parameters

\Drupal\Core\Database\Connection $database: The database connection.

File

src/Plugin/views/query/SqlsrvDateSql.php, line 54

Class

SqlsrvDateSql
MSSQL-specific date handling.

Namespace

Drupal\sqlsrv\Plugin\views\query

Code

public function __construct(Connection $database) {
  $this->database = $database;
}