$coefstring = ($coefstring=='' or $coefstring=='aggregationcoefextra') ? 'aggregationcoefextra' : 'aggregationcoef';
} else if ($cat->aggregation == GRADE_AGGREGATE_SUM) {
- $coefstring = ($coefstring=='' or $coefstring=='aggregationcoefextrasump') ? 'aggregationcoefextrasum' : 'aggregationcoef';
+ $coefstring = ($coefstring=='' or $coefstring=='aggregationcoefextrasum') ? 'aggregationcoefextrasum' : 'aggregationcoef';
} else {
$coefstring = 'aggregationcoef';
if ($aggcoef !== '') {
$agg_el->setLabel(get_string($aggcoef, 'grades'));
- $mform->setHelpButton('aggregationcoef', array('aggregationcoef', get_string('aggregationcoef', 'grades'), 'grade'), true);
+ $mform->setHelpButton('aggregationcoef', array($aggcoef, get_string($aggcoef, 'grades'), 'grade'), true);
}
}
}
if (!$modules = get_records('modules', 'visible', 1)) {
error('No modules found!!'); // Should never happen
}
+
+ $grade = new stdClass();
+ $grade->name = 'grade';
+ $modules[] = $grade;
foreach ($modules as $mod) {
$strmodulename = get_string('modulename', $mod->name);
$string['aggregateweightedmean2'] = 'Simple weighted mean of grades';
$string['aggregation'] = 'Aggregation';
$string['aggregationcoef'] = 'Aggregation coefficient';
-$string['aggregationcoefextra'] = 'Extra credit';
-$string['aggregationcoefextrahelp'] = 'Extra credit for this grade item during aggregation.';
-$string['aggregationcoefextrasum'] = 'Extra credit';
-$string['aggregationcoefextrasumhelp'] = 'Extra credit for this grade item during aggregation.';
+$string['aggregationcoefextra'] = 'Extra credit coefficient';
+$string['aggregationcoefextrasum'] = 'Act as extra credit';
$string['aggregationcoefweight'] = 'Item weight';
-$string['aggregationcoefweighthelp'] = 'Weight applied to all grades in this grade item during aggregation with other grade items.';
$string['aggregationhelp'] = 'Strategy used to aggregate grades across all students in a course.';
$string['aggregationposition'] = 'Aggregation position';
$string['aggregationview'] = 'Aggregation view';
-<h1>Extra credit</h1>
-<p>Extra credit for this grade item during aggregation.</p>
+<h1>Extra credit coefficient</h1>
+<p>A value greater than 0 treats this grade item's grades as Extra credit during aggregation. The number is a factor by which the grade value will be multiplied before it is added to the sum of all grades, but the item itself will not be counted in the division. For example:</p>
+
+<ul>
+ <li>Item 1 is graded 0-100 and its "Extra credit" value is set to 2</li>
+ <li>Item 2 is graded 0-100 and its "Extra credit" value is left at 0.0000</li>
+ <li>Item 3 is graded 0-100 and its "Extra credit" value is left at 0.0000</li>
+ <li>All 3 items belong to Category 1, which has "Mean of grades (with extra credits)" as its aggregation strategy</li>
+ <li>A student gets graded 20 on Item 1, 40 on Item 2 and 70 on Item 3</li>
+ <li>The student's total for Category 1 will be 75/100 (20*2 + 40 + 70) / 2</li>
+</ul>
-<h1>Extra credit</h1>
-<p>Extra credit for this grade item during aggregation.</p>
+<h1>Act as extra credit</h1>
+<p>When the "Sum of grades" aggregation strategy is used, a grade item can act as Extra credit for the category. This means that the grade item's maximum grade will not be added to the category total's maximum grade, but the item's grade will. Following is an example:</p>
+
+<ul>
+ <li>Item 1 is graded 0-100</li>
+ <li>Item 2 is graded 0-75</li>
+ <li>Item 1 has the "Act as extra credit" checkbox ticked, Item 2 doesn't.</li>
+ <li>Both items belong to Category 1, which has "Sum of grades" as its aggregation strategy</li>
+ <li>Category 1's total will be graded 0-75</li>
+ <li>A student gets graded 20 on Item 1 and 70 on Item 2</li>
+ <li>The student's total for Category 1 will be 75/75 (20+70 = 95 but Item 1 only acts as extra credit, so it brings the total to its maximum)</li>
+</ul>
<li><a href="help.php?module=grade&file=aggregateoutcomes.html">Include outcomes in aggregation</a></li>
<li><a href="help.php?module=grade&file=aggregatesubcats.html">Aggregate including subcategories</a></li>
<li><a href="help.php?module=grade&file=aggregation.html">Category aggregation</a></li>
- <li><a href="help.php?module=grade&file=aggregationcoefextra.html">Extra credit</a></li>
- <li><a href="help.php?module=grade&file=aggregationcoefextrasum.html">Extra credit</a></li>
+ <li><a href="help.php?module=grade&file=aggregationcoefextra.html">Extra credit coefficient</a></li>
+ <li><a href="help.php?module=grade&file=aggregationcoefextrasum.html">Act as extra credit</a></li>
<li><a href="help.php?module=grade&file=aggregationcoefweight.html">Item weight</a></li>
<li><a href="help.php?module=grade&file=aggregationposition.html">Aggregation position</a></li>
<li><a href="help.php?module=grade&file=aggregationview.html">Aggregation view</a></li>