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.

3 calls to StatementBase::__construct()
Statement::__construct in core/modules/mysqli/src/Driver/Database/mysqli/Statement.php
Constructs a Statement object.
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.
3 methods override StatementBase::__construct()
Statement::__construct in core/modules/mysqli/src/Driver/Database/mysqli/Statement.php
Constructs a Statement object.
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(protected readonly Connection $connection, protected readonly object $clientConnection, protected readonly string $queryString, protected readonly bool $rowCountEnabled = FALSE) {
}

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