function PdoResult::__construct
Constructor.
Parameters
\Drupal\Core\Database\Statement\FetchAs $fetchMode: The fetch mode.
array{class: class-string, constructor_args: list<mixed>, column: int, cursor_orientation?: int, cursor_offset?: int} $fetchOptions: The fetch options.
\PDOStatement $clientStatement: The PDO Statement object. PDO does not provide a separate object for results, se we need to fetch data from the Statement.
Overrides ResultBase::__construct
File
-
core/
lib/ Drupal/ Core/ Database/ Statement/ PdoResult.php, line 25
Class
- PdoResult
- Class for PDO-provided results of a data query language (DQL) statement.
Namespace
Drupal\Core\Database\StatementCode
public function __construct(FetchAs $fetchMode, array $fetchOptions, \PDOStatement $clientStatement) {
parent::__construct($fetchMode, $fetchOptions);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.