original_string: private function send_qtype_files($qtype, $oldctxid, $newctxid, $progress) {
          if (!isset($this->qtypecomponentscache[$qtype])) {
              $this->qtypecomponentscache[$qtype] = backup_qtype_plugin::get_components_and_fileareas($qtype);
          }
          $components = $this->qtypecomponentscache[$qtype];
          foreach ($components as $component => $fileareas) {
              foreach ($fileareas as $filearea => $mapping) {
                  restore_dbops::send_files_to_pool($this->get_basepath(), $this->get_restoreid(), $component, $filearea,
                          $oldctxid, $this->task->get_userid(), $mapping, null, $newctxid, true, $progress);
              }
          }
      }
code: private function send_qtype_files($qtype, $oldctxid, $newctxid, $progress) {
          if (!isset($this->qtypecomponentscache[$qtype])) {
              $this->qtypecomponentscache[$qtype] = backup_qtype_plugin::get_components_and_fileareas($qtype);
          }
          $components = $this->qtypecomponentscache[$qtype];
          foreach ($components as $component => $fileareas) {
              foreach ($fileareas as $filearea => $mapping) {
                  restore_dbops::send_files_to_pool($this->get_basepath(), $this->get_restoreid(), $component, $filearea,
                          $oldctxid, $this->task->get_userid(), $mapping, null, $newctxid, true, $progress);
              }
          }
      }
code_tokens: private function send_qtype_files ( $ qtype , $ oldctxid , $ newctxid , $ progress ) { if ( ! isset ( $ this -> qtypecomponentscache [ $ qtype ] ) ) { $ this -> qtypecomponentscache [ $ qtype ] = backup_qtype_plugin :: get_components_and_fileareas ( $ qtype ) ; } $ components = $ this -> qtypecomponentscache [ $ qtype ] ; foreach ( $ components as $ component => $ fileareas ) { foreach ( $ fileareas as $ filearea => $ mapping ) { restore_dbops :: send_files_to_pool ( $ this -> get_basepath ( ) , $ this -> get_restoreid ( ) , $ component , $ filearea , $ oldctxid , $ this -> task -> get_userid ( ) , $ mapping , null , $ newctxid , true , $ progress ) ; } } }
docstring: Send the question type specific files to a new context.
  
  @param text            $qtype The qtype name to send.
  @param int             $oldctxid Old context id.
  @param int             $newctxid New context id.
  @param \core\progress  $progress Progress object to use.
docstring_tokens: Send the question type specific files to a new context .