mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-32978 Gradebook: Fix strict standards notices
This commit is contained in:
parent
dfb597b447
commit
6189c7b4d3
@ -23,11 +23,6 @@ class grade_export_txt extends grade_export {
|
|||||||
|
|
||||||
public $separator; // default separator
|
public $separator; // default separator
|
||||||
|
|
||||||
public function grade_export_txt($course, $groupid=0, $itemlist='', $export_feedback=false, $updatedgradesonly = false, $displaytype = GRADE_DISPLAY_TYPE_REAL, $decimalpoints = 2, $separator='comma', $onlyactive = false) {
|
|
||||||
$this->grade_export($course, $groupid, $itemlist, $export_feedback, $updatedgradesonly, $displaytype, $decimalpoints, $onlyactive);
|
|
||||||
$this->separator = $separator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function __construct($course, $groupid=0, $itemlist='', $export_feedback=false, $updatedgradesonly = false, $displaytype = GRADE_DISPLAY_TYPE_REAL, $decimalpoints = 2, $separator = 'comma', $onlyactive = false) {
|
public function __construct($course, $groupid=0, $itemlist='', $export_feedback=false, $updatedgradesonly = false, $displaytype = GRADE_DISPLAY_TYPE_REAL, $decimalpoints = 2, $separator = 'comma', $onlyactive = false) {
|
||||||
parent::__construct($course, $groupid, $itemlist, $export_feedback, $updatedgradesonly, $displaytype, $decimalpoints, $onlyactive);
|
parent::__construct($course, $groupid, $itemlist, $export_feedback, $updatedgradesonly, $displaytype, $decimalpoints, $onlyactive);
|
||||||
$this->separator = $separator;
|
$this->separator = $separator;
|
||||||
|
@ -218,6 +218,9 @@ class graded_users_iterator {
|
|||||||
|
|
||||||
if (!empty($this->grade_items)) {
|
if (!empty($this->grade_items)) {
|
||||||
foreach ($this->grade_items as $grade_item) {
|
foreach ($this->grade_items as $grade_item) {
|
||||||
|
if (!isset($feedbacks[$grade_item->id])) {
|
||||||
|
$feedbacks[$grade_item->id] = new stdClass();
|
||||||
|
}
|
||||||
if (array_key_exists($grade_item->id, $grade_records)) {
|
if (array_key_exists($grade_item->id, $grade_records)) {
|
||||||
$feedbacks[$grade_item->id]->feedback = $grade_records[$grade_item->id]->feedback;
|
$feedbacks[$grade_item->id]->feedback = $grade_records[$grade_item->id]->feedback;
|
||||||
$feedbacks[$grade_item->id]->feedbackformat = $grade_records[$grade_item->id]->feedbackformat;
|
$feedbacks[$grade_item->id]->feedbackformat = $grade_records[$grade_item->id]->feedbackformat;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user