| Versionen | |
|---|---|
| drupal7 | public DatabaseStatementPrefetch::fetchCol($index = 0) |
includes/
<?php
public function fetchCol($index = 0) {
if (isset($this->columnNames[$index])) {
$column = $this->columnNames[$index];
$result = array();
// Traverse the array as PHP would have done.
while (isset($this->currentRow)) {
$result[] = $this->currentRow[$this->columnNames[$index]];
$this->next();
}
return $result;
}
else {
return array();
}
}
?>
Kommentare
Kommentar hinzufügen