original_string: public static function restore_get_questions($restoreid, $qcatid) {
          global $DB;
  
          $results = array();
          $qs = $DB->get_recordset_sql("SELECT itemid, info
                                        FROM {backup_ids_temp}
                                       WHERE backupid = ?
                                         AND itemname = 'question'
                                         AND parentitemid = ?", array($restoreid, $qcatid));
          foreach ($qs as $q) {
              $results[$q->itemid] = backup_controller_dbops::decode_backup_temp_info($q->info);
          }
          $qs->close();
          return $results;
      }
code: public static function restore_get_questions($restoreid, $qcatid) {
          global $DB;
  
          $results = array();
          $qs = $DB->get_recordset_sql("SELECT itemid, info
                                        FROM {backup_ids_temp}
                                       WHERE backupid = ?
                                         AND itemname = 'question'
                                         AND parentitemid = ?", array($restoreid, $qcatid));
          foreach ($qs as $q) {
              $results[$q->itemid] = backup_controller_dbops::decode_backup_temp_info($q->info);
          }
          $qs->close();
          return $results;
      }
code_tokens: public static function restore_get_questions ( $ restoreid , $ qcatid ) { global $ DB ; $ results = array ( ) ; $ qs = $ DB -> get_recordset_sql ( "SELECT itemid, info
                                        FROM {backup_ids_temp}
                                       WHERE backupid = ?
                                         AND itemname = 'question'
                                         AND parentitemid = ?" , array ( $ restoreid , $ qcatid ) ) ; foreach ( $ qs as $ q ) { $ results [ $ q -> itemid ] = backup_controller_dbops :: decode_backup_temp_info ( $ q -> info ) ; } $ qs -> close ( ) ; return $ results ; }
docstring: Return one array of question records for
  a given restore operation and one question category
docstring_tokens: Return one array of question records for a given restore operation and one question category