original_string: public static function make_draftfile_url($draftid, $pathname, $filename, $forcedownload = false) {
          global $CFG, $USER;
          $urlbase = "$CFG->wwwroot/draftfile.php";
          $context = context_user::instance($USER->id);
  
          return self::make_file_url($urlbase, "/$context->id/user/draft/$draftid".$pathname.$filename, $forcedownload);
      }
code: public static function make_draftfile_url($draftid, $pathname, $filename, $forcedownload = false) {
          global $CFG, $USER;
          $urlbase = "$CFG->wwwroot/draftfile.php";
          $context = context_user::instance($USER->id);
  
          return self::make_file_url($urlbase, "/$context->id/user/draft/$draftid".$pathname.$filename, $forcedownload);
      }
code_tokens: public static function make_draftfile_url ( $ draftid , $ pathname , $ filename , $ forcedownload = false ) { global $ CFG , $ USER ; $ urlbase = "$CFG->wwwroot/draftfile.php" ; $ context = context_user :: instance ( $ USER -> id ) ; return self :: make_file_url ( $ urlbase , "/$context->id/user/draft/$draftid" . $ pathname . $ filename , $ forcedownload ) ; }
docstring: Factory method for creation of url pointing to draft file of current user.
  
  @param int $draftid draft item id
  @param string $pathname
  @param string $filename
  @param bool $forcedownload
  @return moodle_url
docstring_tokens: Factory method for creation of url pointing to draft file of current user .