function StatementPrefetchIterator::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Database/StatementPrefetchIterator.php \Drupal\Core\Database\StatementPrefetchIterator::__construct()
- 10 core/lib/Drupal/Core/Database/StatementPrefetchIterator.php \Drupal\Core\Database\StatementPrefetchIterator::__construct()
Constructs a StatementPrefetchIterator object.
Parameters
object $clientConnection: Client database connection object, for example \PDO.
\Drupal\Core\Database\Connection $connection: The database connection.
string $queryString: The query string.
array $driverOptions: Driver-specific options.
bool $rowCountEnabled: (optional) Enables counting the rows matched. Defaults to FALSE.
Overrides StatementBase::__construct
File
-
core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php, line 42
Class
- StatementPrefetchIterator
- An implementation of StatementInterface that prefetches all data.
Namespace
Drupal\Core\DatabaseCode
public function __construct(object $clientConnection, Connection $connection, string $queryString, protected array $driverOptions = [], bool $rowCountEnabled = FALSE) {
@trigger_error(__METHOD__ . '() is deprecated in drupal:12.1.0 and is removed from drupal:13.0.0. Extend from \\Drupal\\Core\\Database\\Statement\\StatementBase instead. See https://www.drupal.org/node/3575664', E_USER_DEPRECATED);
parent::__construct($connection, $clientConnection, $queryString, $rowCountEnabled);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.