MDL-20418 Entirely removed the duplication of code by refactoring the way the grader report is built. Uses $OUTPUT only now.

This commit is contained in:
Nicolas Connault 2009-10-29 08:14:40 +00:00
parent 5f8bce506f
commit 6c096a496d
2 changed files with 437 additions and 471 deletions

View File

@ -170,16 +170,7 @@ if (!empty($studentsperpage)) {
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')) {

File diff suppressed because it is too large Load Diff