$straverage = get_string('overallaverage', 'grades');
$showaverages = $this->get_pref('showaverages');
$showaverages_group = $this->currentgroup && $showaverages;
-
+
if ($showaverages_group) {
$studentshtml .= '<tr class="groupavg r'.$this->rowcount++.'"><th class="header c0" '.$colspan.'scope="row">'.$straverage_group.'</th></tr>';
}
$strswitch_whole = $this->get_lang_string('fullmode', 'grades');
$expand_contract = 'switch_minus'; // Default: expanded
- // $this->get_pref('aggregationview', $element['object']->id) == GRADE_REPORT_AGGREGATION_VIEW_COMPACT
if (in_array($element['object']->id, $this->collapsed['aggregatesonly'])) {
$expand_contract = 'switch_plus';
// Initialise the preferences arrays with grade:manage capabilities
if (has_capability('moodle/grade:manage', $context)) {
- $preferences['prefgeneral'] = array(
- 'aggregationview' => array(GRADE_REPORT_PREFERENCE_DEFAULT => '*default*',
- GRADE_REPORT_AGGREGATION_VIEW_FULL => get_string('fullmode', 'grades'),
- GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY => get_string('aggregatesonly', 'grades'),
- GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY => get_string('gradesonly', 'grades')));
-
$preferences['prefshow'] = array();
$preferences['prefshow']['showcalculations'] = $checkbox_default;
$settings->add(new admin_setting_configcheckbox('grade_report_fixedstudents', get_string('fixedstudents', 'grades'),
get_string('configfixedstudents', 'grades'), 0));
-$settings->add(new admin_setting_configselect('grade_report_aggregationview', get_string('aggregationview', 'grades'),
- get_string('configaggregationview', 'grades'), GRADE_REPORT_AGGREGATION_VIEW_FULL,
- array(GRADE_REPORT_AGGREGATION_VIEW_FULL => get_string('full', 'grades'),
- GRADE_REPORT_AGGREGATION_VIEW_AGGREGATES_ONLY => get_string('aggregatesonly', 'grades'),
- GRADE_REPORT_AGGREGATION_VIEW_GRADES_ONLY => get_string('gradesonly', 'grades'))));
-
$settings->add(new admin_setting_configselect('grade_report_meanselection', get_string('meanselection', 'grades'),
get_string('configmeanselection', 'grades'), GRADE_REPORT_MEAN_GRADED,
array(GRADE_REPORT_MEAN_ALL => get_string('meanall', 'grades'),