Skip navigation
Help

Query::__construct

7 query.inc public Query::__construct(DatabaseConnection $connection, $options)

Constructs a Query object.

Parameters

DatabaseConnection $connection: Database connection object.

array $options: Array of query options.

6 calls to Query::__construct()

File

drupal/includes/database/query.inc, line 306
Non-specific Database query code. Used by all engines.

Code

public function __construct(DatabaseConnection $connection, $options) {
  $this->connection = $connection;
  $this->connectionKey = $this->connection->getKey();
  $this->connectionTarget = $this->connection->getTarget();

  $this->queryOptions = $options;
}