function StatementPrefetchIterator::fetchField
Same name in other branches
- 10 core/lib/Drupal/Core/Database/StatementPrefetchIterator.php \Drupal\Core\Database\StatementPrefetchIterator::fetchField()
Overrides StatementInterface::fetchField
2 calls to StatementPrefetchIterator::fetchField()
- StatementPrefetchIterator::fetchCol in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php - Returns an entire single column of a result set as an indexed array.
- StatementPrefetchIterator::fetchColumn in core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php
File
-
core/
lib/ Drupal/ Core/ Database/ StatementPrefetchIterator.php, line 272
Class
- StatementPrefetchIterator
- An implementation of StatementInterface that prefetches all data.
Namespace
Drupal\Core\DatabaseCode
public function fetchField($index = 0) {
if ($row = $this->fetch(\PDO::FETCH_ASSOC)) {
return $this->assocToColumn($row, $this->columnNames, $index);
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.