public function col_feedbacktext($attempt) {
        if ($attempt->state != quiz_attempt::FINISHED) {
            return '-';
        }

        $feedback = quiz_report_feedback_for_grade(
                quiz_rescale_grade($attempt->sumgrades, $this->quiz, false),
                $this->quiz->id, $this->context);

        if ($this->is_downloading()) {
            $feedback = strip_tags($feedback);
        }

        return $feedback;
    }
public function col_feedbacktext($attempt) {
        if ($attempt->state != quiz_attempt::FINISHED) {
            return '-';
        }

        $feedback = quiz_report_feedback_for_grade(
                quiz_rescale_grade($attempt->sumgrades, $this->quiz, false),
                $this->quiz->id, $this->context);

        if ($this->is_downloading()) {
            $feedback = strip_tags($feedback);
        }

        return $feedback;
    }
public function col_feedbacktext ( $ attempt ) { if ( $ attempt -> state != quiz_attempt :: FINISHED ) { return '-' ; } $ feedback = quiz_report_feedback_for_grade ( quiz_rescale_grade ( $ attempt -> sumgrades , $ this -> quiz , false ) , $ this -> quiz -> id , $ this -> context ) ; if ( $ this -> is_downloading ( ) ) { $ feedback = strip_tags ( $ feedback ) ; } return $ feedback ; }
Generate the display of the feedback column.
@param object $attempt the table row being output.
@return string HTML content to go inside the td.
Generate the display of the feedback column .