original_string: public function doc_link($path, $text = '', $forcepopup = false) {
          global $CFG;
  
          $icon = $this->pix_icon('docs', '', 'moodle', array('class'=>'iconhelp icon-pre', 'role'=>'presentation'));
  
          $url = new moodle_url(get_docs_url($path));
  
          $attributes = array('href'=>$url);
          if (!empty($CFG->doctonewwindow) || $forcepopup) {
              $attributes['class'] = 'helplinkpopup';
          }
  
          return html_writer::tag('a', $icon.$text, $attributes);
      }
code: public function doc_link($path, $text = '', $forcepopup = false) {
          global $CFG;
  
          $icon = $this->pix_icon('docs', '', 'moodle', array('class'=>'iconhelp icon-pre', 'role'=>'presentation'));
  
          $url = new moodle_url(get_docs_url($path));
  
          $attributes = array('href'=>$url);
          if (!empty($CFG->doctonewwindow) || $forcepopup) {
              $attributes['class'] = 'helplinkpopup';
          }
  
          return html_writer::tag('a', $icon.$text, $attributes);
      }
code_tokens: public function doc_link ( $ path , $ text = '' , $ forcepopup = false ) { global $ CFG ; $ icon = $ this -> pix_icon ( 'docs' , '' , 'moodle' , array ( 'class' => 'iconhelp icon-pre' , 'role' => 'presentation' ) ) ; $ url = new moodle_url ( get_docs_url ( $ path ) ) ; $ attributes = array ( 'href' => $ url ) ; if ( ! empty ( $ CFG -> doctonewwindow ) || $ forcepopup ) { $ attributes [ 'class' ] = 'helplinkpopup' ; } return html_writer :: tag ( 'a' , $ icon . $ text , $ attributes ) ; }
docstring: Returns a string containing a link to the user documentation.
  Also contains an icon by default. Shown to teachers and admin only.
  
  @param string $path The page link after doc root and language, no leading slash.
  @param string $text The text to be displayed for the link
  @param boolean $forcepopup Whether to force a popup regardless of the value of $CFG->doctonewwindow
  @return string
docstring_tokens: Returns a string containing a link to the user documentation . Also contains an icon by default . Shown to teachers and admin only .