public StatementPrefetch::fetchColumn($index = 0)
File
- core/lib/Drupal/Core/Database/StatementPrefetch.php, line 390
Class
- StatementPrefetch
- An implementation of StatementInterface that prefetches all data.
Namespace
Drupal\Core\Database
Code
1 2 3 4 5 6 7 8 9 10 11 | public function fetchColumn( $index = 0) { if (isset( $this ->currentRow) && isset( $this ->columnNames[ $index ])) { // We grab the value directly from $this->data, and format it. $return = $this ->currentRow[ $this ->columnNames[ $index ]]; $this ->next(); return $return ; } else { return FALSE; } } |
Please login to continue.