original_string: public function col_feedback(\stdClass $history) {
          if ($this->is_downloading()) {
              return $history->feedback;
          } else {
              // We need the activity context, not the course context.
              $gradeitem = $this->gradeitems[$history->itemid];
              $context = $gradeitem->get_context();
  
              $feedback = file_rewrite_pluginfile_urls(
                  $history->feedback,
                  'pluginfile.php',
                  $context->id,
                  GRADE_FILE_COMPONENT,
                  GRADE_HISTORY_FEEDBACK_FILEAREA,
                  $history->id
              );
  
              return format_text($feedback, $history->feedbackformat, array('context' => $context));
          }
      }
code: public function col_feedback(\stdClass $history) {
          if ($this->is_downloading()) {
              return $history->feedback;
          } else {
              // We need the activity context, not the course context.
              $gradeitem = $this->gradeitems[$history->itemid];
              $context = $gradeitem->get_context();
  
              $feedback = file_rewrite_pluginfile_urls(
                  $history->feedback,
                  'pluginfile.php',
                  $context->id,
                  GRADE_FILE_COMPONENT,
                  GRADE_HISTORY_FEEDBACK_FILEAREA,
                  $history->id
              );
  
              return format_text($feedback, $history->feedbackformat, array('context' => $context));
          }
      }
code_tokens: public function col_feedback ( \ stdClass $ history ) { if ( $ this -> is_downloading ( ) ) { return $ history -> feedback ; } else { // We need the activity context, not the course context. $ gradeitem = $ this -> gradeitems [ $ history -> itemid ] ; $ context = $ gradeitem -> get_context ( ) ; $ feedback = file_rewrite_pluginfile_urls ( $ history -> feedback , 'pluginfile.php' , $ context -> id , GRADE_FILE_COMPONENT , GRADE_HISTORY_FEEDBACK_FILEAREA , $ history -> id ) ; return format_text ( $ feedback , $ history -> feedbackformat , array ( 'context' => $ context ) ) ; } }
docstring: Method to display column feedback.
  
  @param \stdClass $history an entry of history record.
  
  @return string HTML to display
docstring_tokens: Method to display column feedback .