function StatementIteratorTrait::setResultsetCurrentRow
Sets the current resultset row for the iterator, and increments the key.
Parameters
mixed $row: The last row fetched from the client statement.
3 calls to StatementIteratorTrait::setResultsetCurrentRow()
- StatementBase::fetch in core/
lib/ Drupal/ Core/ Database/ Statement/ StatementBase.php - StatementBase::fetchField in core/
lib/ Drupal/ Core/ Database/ Statement/ StatementBase.php - StatementBase::fetchObject in core/
lib/ Drupal/ Core/ Database/ Statement/ StatementBase.php
File
-
core/
lib/ Drupal/ Core/ Database/ StatementIteratorTrait.php, line 51
Class
- StatementIteratorTrait
- StatementInterface iterator trait.
Namespace
Drupal\Core\DatabaseCode
protected function setResultsetCurrentRow(mixed $row) : void {
$this->resultsetRow = $row;
$this->resultsetKey++;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.