original_string: public function help_icon_scale($courseid, stdClass $scale) {
          global $CFG;
  
          $title = get_string('helpprefix2', '', $scale->name) .' ('.get_string('newwindow').')';
  
          $icon = $this->pix_icon('help', get_string('scales'), 'moodle', array('class'=>'iconhelp'));
  
          $scaleid = abs($scale->id);
  
          $link = new moodle_url('/course/scales.php', array('id' => $courseid, 'list' => true, 'scaleid' => $scaleid));
          $action = new popup_action('click', $link, 'ratingscale');
  
          return html_writer::tag('span', $this->action_link($link, $icon, $action), array('class' => 'helplink'));
      }
code: public function help_icon_scale($courseid, stdClass $scale) {
          global $CFG;
  
          $title = get_string('helpprefix2', '', $scale->name) .' ('.get_string('newwindow').')';
  
          $icon = $this->pix_icon('help', get_string('scales'), 'moodle', array('class'=>'iconhelp'));
  
          $scaleid = abs($scale->id);
  
          $link = new moodle_url('/course/scales.php', array('id' => $courseid, 'list' => true, 'scaleid' => $scaleid));
          $action = new popup_action('click', $link, 'ratingscale');
  
          return html_writer::tag('span', $this->action_link($link, $icon, $action), array('class' => 'helplink'));
      }
code_tokens: public function help_icon_scale ( $ courseid , stdClass $ scale ) { global $ CFG ; $ title = get_string ( 'helpprefix2' , '' , $ scale -> name ) . ' (' . get_string ( 'newwindow' ) . ')' ; $ icon = $ this -> pix_icon ( 'help' , get_string ( 'scales' ) , 'moodle' , array ( 'class' => 'iconhelp' ) ) ; $ scaleid = abs ( $ scale -> id ) ; $ link = new moodle_url ( '/course/scales.php' , array ( 'id' => $ courseid , 'list' => true , 'scaleid' => $ scaleid ) ) ; $ action = new popup_action ( 'click' , $ link , 'ratingscale' ) ; return html_writer :: tag ( 'span' , $ this -> action_link ( $ link , $ icon , $ action ) , array ( 'class' => 'helplink' ) ) ; }
docstring: Returns HTML to display a scale help icon.
  
  @param int $courseid
  @param stdClass $scale instance
  @return string HTML fragment
docstring_tokens: Returns HTML to display a scale help icon .