function StatementIteratorTrait::markResultsetIterable

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/StatementIteratorTrait.php \Drupal\Core\Database\StatementIteratorTrait::markResultsetIterable()

Informs the iterator whether rows can be fetched from the resultset.

Parameters

bool $valid: The result of the execution of the client statement.

4 calls to StatementIteratorTrait::markResultsetIterable()
StatementIteratorTrait::markResultsetFetchingComplete in core/lib/Drupal/Core/Database/StatementIteratorTrait.php
Informs the iterator that no more rows can be fetched from the resultset.
StatementIteratorTrait::rewind in core/lib/Drupal/Core/Database/StatementIteratorTrait.php
Rewinds back to the first element of the Iterator.
StatementPrefetchIterator::execute in core/lib/Drupal/Core/Database/StatementPrefetchIterator.php
Executes a prepared statement.
StatementWrapperIterator::execute in core/lib/Drupal/Core/Database/StatementWrapperIterator.php
Executes a prepared statement.

File

core/lib/Drupal/Core/Database/StatementIteratorTrait.php, line 37

Class

StatementIteratorTrait
StatementInterface iterator trait.

Namespace

Drupal\Core\Database

Code

protected function markResultsetIterable(bool $valid) : void {
    $this->isResultsetIterable = $valid;
    $this->resultsetRow = NULL;
    if ($valid === TRUE) {
        $this->resultsetKey = -1;
    }
}

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