original_string: protected function col_url($row) {
          global $OUTPUT;
  
          // Build the link to latest run for the script
          $scripturl = new moodle_url('/admin/tool/profiling/index.php', array('script' => $row->url, 'listurl' => $row->url));
          $scriptaction = $OUTPUT->action_link($scripturl, $row->url);
  
          // Decide, based on $this->listurlmode which actions to show
          if ($this->listurlmode) {
              $detailsaction = '';
          } else {
              // Build link icon to script details (pix + url + actionlink)
              $detailsimg = $OUTPUT->pix_icon('t/right', get_string('profilingfocusscript', 'tool_profiling', $row->url));
              $detailsurl = new moodle_url('/admin/tool/profiling/index.php', array('listurl' => $row->url));
              $detailsaction = $OUTPUT->action_link($detailsurl, $detailsimg);
          }
  
          return $scriptaction . '&nbsp;' . $detailsaction;
      }
code: protected function col_url($row) {
          global $OUTPUT;
  
          // Build the link to latest run for the script
          $scripturl = new moodle_url('/admin/tool/profiling/index.php', array('script' => $row->url, 'listurl' => $row->url));
          $scriptaction = $OUTPUT->action_link($scripturl, $row->url);
  
          // Decide, based on $this->listurlmode which actions to show
          if ($this->listurlmode) {
              $detailsaction = '';
          } else {
              // Build link icon to script details (pix + url + actionlink)
              $detailsimg = $OUTPUT->pix_icon('t/right', get_string('profilingfocusscript', 'tool_profiling', $row->url));
              $detailsurl = new moodle_url('/admin/tool/profiling/index.php', array('listurl' => $row->url));
              $detailsaction = $OUTPUT->action_link($detailsurl, $detailsimg);
          }
  
          return $scriptaction . '&nbsp;' . $detailsaction;
      }
code_tokens: protected function col_url ( $ row ) { global $ OUTPUT ; // Build the link to latest run for the script $ scripturl = new moodle_url ( '/admin/tool/profiling/index.php' , array ( 'script' => $ row -> url , 'listurl' => $ row -> url ) ) ; $ scriptaction = $ OUTPUT -> action_link ( $ scripturl , $ row -> url ) ; // Decide, based on $this->listurlmode which actions to show if ( $ this -> listurlmode ) { $ detailsaction = '' ; } else { // Build link icon to script details (pix + url + actionlink) $ detailsimg = $ OUTPUT -> pix_icon ( 't/right' , get_string ( 'profilingfocusscript' , 'tool_profiling' , $ row -> url ) ) ; $ detailsurl = new moodle_url ( '/admin/tool/profiling/index.php' , array ( 'listurl' => $ row -> url ) ) ; $ detailsaction = $ OUTPUT -> action_link ( $ detailsurl , $ detailsimg ) ; } return $ scriptaction . '&nbsp;' . $ detailsaction ; }
docstring: Format URL, so it points to last run for that url
docstring_tokens: Format URL so it points to last run for that url