You are here

private function EvaluationImplementation::dbFetchAllAssoc in Drupal 8 upgrade evaluation 6

Backport of the DBTNG fetchAllAssoc() from Drupal 7.

1 call to EvaluationImplementation::dbFetchAllAssoc()
EvaluationImplementation::systemList in includes/EvaluationImplementation.php
Backport of the DBTNG system_list() from Drupal 7.

File

includes/EvaluationImplementation.php, line 1049

Class

EvaluationImplementation

Namespace

Upgrade_check

Code

private function dbFetchAllAssoc($query, $field) {
  $return = array();
  while ($result = db_fetch_object($query)) {
    if (isset($result->{$field})) {
      $key = $result->{$field};
      $return[$key] = $result;
    }
  }
  return $return;
}