function StatementBase::__construct

Constructor.

Parameters

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

object $clientConnection: Client database connection object, for example \PDO.

string $queryString: The query string.

bool $rowCountEnabled: (optional) Enables counting the rows matched. Defaults to FALSE.

2 calls to StatementBase::__construct()
StatementPrefetchIterator::__construct in core/lib/Drupal/Core/Database/StatementPrefetchIterator.php
Constructs a StatementPrefetchIterator object.
StatementWrapperIterator::__construct in core/lib/Drupal/Core/Database/StatementWrapperIterator.php
Constructs a StatementWrapperIterator object.
2 methods override StatementBase::__construct()
StatementPrefetchIterator::__construct in core/lib/Drupal/Core/Database/StatementPrefetchIterator.php
Constructs a StatementPrefetchIterator object.
StatementWrapperIterator::__construct in core/lib/Drupal/Core/Database/StatementWrapperIterator.php
Constructs a StatementWrapperIterator object.

File

core/lib/Drupal/Core/Database/Statement/StatementBase.php, line 80

Class

StatementBase
StatementInterface base implementation.

Namespace

Drupal\Core\Database\Statement

Code

public function __construct(Connection $connection, object $clientConnection, string $queryString, bool $rowCountEnabled = FALSE) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.