Skip to content

Commit

Permalink
MDL-20418 Entirely removed the duplication of code by refactoring the…
Browse files Browse the repository at this point in the history
… way the grader report is built. Uses $OUTPUT only now.
  • Loading branch information
nicolasconnault committed Oct 29, 2009
1 parent 5f8bce5 commit 6c096a4
Show file tree
Hide file tree
Showing 2 changed files with 435 additions and 469 deletions.
11 changes: 1 addition & 10 deletions grade/report/grader/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,7 @@
echo $OUTPUT->paging_bar(moodle_paging_bar::make($numusers, $report->page, $studentsperpage, $report->pbarurl));
}

$reporthtml = '<div class="gradeparent">';
$reporthtml .= $report->get_studentnameshtml();
$reporthtml .= $report->get_headerhtml();
$reporthtml .= $report->get_iconshtml();
$reporthtml .= $report->get_studentshtml();
$reporthtml .= $report->get_rangehtml();
$reporthtml .= $report->get_avghtml(true);
$reporthtml .= $report->get_avghtml();
$reporthtml .= $report->get_endhtml();
$reporthtml .= '</div>';
$reporthtml = $report->get_grade_table();

// print submit button
if ($USER->gradeediting[$course->id] && ($report->get_pref('showquickfeedback') || $report->get_pref('quickgrading')) && !$report->get_pref('enableajax')) {
Expand Down
Loading

0 comments on commit 6c096a4

Please sign in to comment.