original_string: protected function move_files_in_hints($questionid, $oldcontextid, $newcontextid) {
          global $DB;
          $fs = get_file_storage();
  
          $hintids = $DB->get_records_menu('question_hints',
                  array('questionid' => $questionid), 'id', 'id,1');
          foreach ($hintids as $hintid => $notused) {
              $fs->move_area_files_to_new_context($oldcontextid,
                      $newcontextid, 'question', 'hint', $hintid);
          }
      }
code: protected function move_files_in_hints($questionid, $oldcontextid, $newcontextid) {
          global $DB;
          $fs = get_file_storage();
  
          $hintids = $DB->get_records_menu('question_hints',
                  array('questionid' => $questionid), 'id', 'id,1');
          foreach ($hintids as $hintid => $notused) {
              $fs->move_area_files_to_new_context($oldcontextid,
                      $newcontextid, 'question', 'hint', $hintid);
          }
      }
code_tokens: protected function move_files_in_hints ( $ questionid , $ oldcontextid , $ newcontextid ) { global $ DB ; $ fs = get_file_storage ( ) ; $ hintids = $ DB -> get_records_menu ( 'question_hints' , array ( 'questionid' => $ questionid ) , 'id' , 'id,1' ) ; foreach ( $ hintids as $ hintid => $ notused ) { $ fs -> move_area_files_to_new_context ( $ oldcontextid , $ newcontextid , 'question' , 'hint' , $ hintid ) ; } }
docstring: Move all the files belonging to this question's hints when the question
  is moved from one context to another.
  @param int $questionid the question being moved.
  @param int $oldcontextid the context it is moving from.
  @param int $newcontextid the context it is moving to.
  @param bool $answerstoo whether there is an 'answer' question area,
  as well as an 'answerfeedback' one. Default false.
docstring_tokens: Move all the files belonging to this question s hints when the question is moved from one context to another .