public Query::__construct(Connection$connection,$options)
Constructs a Query object.
Parameters
\Drupal\Core\Database\Connection $connection: Database connection object.
array $options: Array of query options.
File
- core/lib/Drupal/Core/Database/Query/Query.php, line 69
Class
- Query
- Base class for query builders.
Namespace
Drupal\Core\Database\Query
Code
public function __construct(Connection $connection, $options) { $this->uniqueIdentifier = uniqid('', TRUE); $this->connection = $connection; $this->connectionKey = $this->connection->getKey(); $this->connectionTarget = $this->connection->getTarget(); $this->queryOptions = $options; }
Please login to continue.