Query::__construct

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;
}
doc_Drupal
2016-10-29 09:35:27
Comments
Leave a Comment

Please login to continue.