original_string: public static function make_webservice_pluginfile_url($contextid, $component, $area, $itemid, $pathname, $filename,
                                                 $forcedownload = false) {
          global $CFG;
          $urlbase = "$CFG->wwwroot/webservice/pluginfile.php";
          if ($itemid === null) {
              return self::make_file_url($urlbase, "/$contextid/$component/$area".$pathname.$filename, $forcedownload);
          } else {
              return self::make_file_url($urlbase, "/$contextid/$component/$area/$itemid".$pathname.$filename, $forcedownload);
          }
      }
code: public static function make_webservice_pluginfile_url($contextid, $component, $area, $itemid, $pathname, $filename,
                                                 $forcedownload = false) {
          global $CFG;
          $urlbase = "$CFG->wwwroot/webservice/pluginfile.php";
          if ($itemid === null) {
              return self::make_file_url($urlbase, "/$contextid/$component/$area".$pathname.$filename, $forcedownload);
          } else {
              return self::make_file_url($urlbase, "/$contextid/$component/$area/$itemid".$pathname.$filename, $forcedownload);
          }
      }
code_tokens: public static function make_webservice_pluginfile_url ( $ contextid , $ component , $ area , $ itemid , $ pathname , $ filename , $ forcedownload = false ) { global $ CFG ; $ urlbase = "$CFG->wwwroot/webservice/pluginfile.php" ; if ( $ itemid === null ) { return self :: make_file_url ( $ urlbase , "/$contextid/$component/$area" . $ pathname . $ filename , $ forcedownload ) ; } else { return self :: make_file_url ( $ urlbase , "/$contextid/$component/$area/$itemid" . $ pathname . $ filename , $ forcedownload ) ; } }
docstring: Factory method for creation of url pointing to plugin file.
  This method is the same that make_pluginfile_url but pointing to the webservice pluginfile.php script.
  It should be used only in external functions.
  
  @since  2.8
  @param int $contextid
  @param string $component
  @param string $area
  @param int $itemid
  @param string $pathname
  @param string $filename
  @param bool $forcedownload
  @return moodle_url
docstring_tokens: Factory method for creation of url pointing to plugin file . This method is the same that make_pluginfile_url but pointing to the webservice pluginfile . php script . It should be used only in external functions .