Skip to content

Commit ab8957c

Browse files
committed
CTP-3560 coursework tests unfinished review work;
1 parent 8ad5720 commit ab8957c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+329
-176
lines changed

classes/allocation/table/builder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
* Represents the table that will show all students and all markers so that they can be matched up with one another for grading.
4040
* Various automatic strategies will be available for this, but the manual override happens here.
4141
*/
42+
#[\AllowDynamicProperties]
4243
class builder {
4344

4445
/**

classes/models/allocation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* @property mixed allocatableid
3030
* @property mixed allocatabletype
3131
*/
32+
#[\AllowDynamicProperties]
3233
class allocation extends table_base {
3334

3435
/**

classes/models/assessment_set_membership.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* @package mod_coursework\models
1919
*
2020
*/
21+
#[\AllowDynamicProperties]
2122
class assessment_set_membership extends table_base implements moderatable {
2223

2324
/**

classes/models/coursework.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
* @property mixed startdate
8787
* @author administrator
8888
*/
89+
#[\AllowDynamicProperties]
8990
class coursework extends table_base {
9091

9192
/**

classes/models/deadline_extension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* @property mixed allocatableid
1717
* @package mod_coursework\models
1818
*/
19+
#[\AllowDynamicProperties]
1920
class deadline_extension extends table_base {
2021

2122
/**

classes/models/feedback.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* @property mixed stage_identifier
3333
* @property int feedback_manager
3434
*/
35+
#[\AllowDynamicProperties]
3536
class feedback extends table_base {
3637

3738
/**
@@ -590,7 +591,7 @@ public static function fill_pool_coursework($coursework_id) {
590591
if (isset(self::$pool[$coursework_id])) {
591592
return;
592593
}
593-
if (submission::$pool[$coursework_id]) {
594+
if (submission::$pool[$coursework_id] ?? null) {
594595
$submission_ids = submission::$pool[$coursework_id]['id'];
595596
} else {
596597
$submission_ids = $DB->get_records(submission::$table_name, ['courseworkid' => $coursework_id], '', 'id');

classes/models/group.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @property mixed courseid
2121
* @package mod_coursework\models
2222
*/
23+
#[\AllowDynamicProperties]
2324
class group extends table_base implements allocatable, moderatable {
2425

2526
use allocatable_functions;

classes/models/module.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
/**
2424
* Represents a row in the modules table.
2525
*/
26+
#[\AllowDynamicProperties]
2627
class module extends table_base {
2728

2829
/**

classes/models/submission.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
* @property mixed timesubmitted
4646
* @property mixed lastpublished
4747
*/
48+
#[\AllowDynamicProperties]
4849
class submission extends table_base implements \renderable {
4950

5051
/**

classes/models/user.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Class user
1818
* @package mod_coursework\models
1919
*/
20+
#[\AllowDynamicProperties]
2021
class user extends table_base implements allocatable, moderatable {
2122

2223
use allocatable_functions;

0 commit comments

Comments
 (0)