Skip to content

Commit

Permalink
mod_bbb sections
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Oct 16, 2024
1 parent be91712 commit b3d6f59
Show file tree
Hide file tree
Showing 29 changed files with 132 additions and 427 deletions.
13 changes: 6 additions & 7 deletions src/transformer/events/mod_bigbluebuttonbn/handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,19 @@ function create_statement(array $config, \stdClass $event, $evtid, $evtdispname
'object' => utils\get_activity\course_module(
$config,
$course,
$event->contextinstanceid,
'http://adlnet.gov/expapi/activities/meeting'
$event->contextinstanceid
),
'context' => [
'language' => $lang,
'extensions' => utils\extensions\base($config, $event, $course),
'contextActivities' => [
'grouping' => [
'parent' => utils\context_activities\get_parent(
$config,
$event->contextinstanceid
),
'category' => [
utils\get_activity\site($config),
utils\get_activity\course($config, $course),
],
'category' => [
utils\get_activity\source($config),
]
],
]
]];
Expand Down
22 changes: 0 additions & 22 deletions tests/mod_bigbluebuttonbn/activity_management_viewed/data.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
{
"user": [
{
"id": 1,
"firstname": "test_fullname",
"email": "[email protected]"
}
],
"course": [
{
"id": 1,
"fullname": "test_name",
"lang": "en"
}
],
"course_modules": [
{
"id": 1,
"course": 1,
"module": 1,
"instance": 1
}
],
"modules": [
{
"id": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
}
},
"contextActivities": {
"grouping": [
"parent": [
{
"id": "http://www.example.org",
"id": "http://www.example.org/course/section.php?id=1",
"objectType": "Activity",
"definition": {
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "test_name"
}
"en": "test_name Section 0"
},
"type": "http://id.tincanapi.com/activitytype/section"
}
},
{
Expand All @@ -55,11 +56,11 @@
],
"category": [
{
"id": "http://moodle.org",
"id": "http://www.example.org",
"definition": {
"type": "http://id.tincanapi.com/activitytype/source",
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "Moodle"
"en": "test_name"
}
}
}
Expand Down
22 changes: 0 additions & 22 deletions tests/mod_bigbluebuttonbn/live_session/data.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
{
"user": [
{
"id": 1,
"firstname": "test_fullname",
"email": "[email protected]"
}
],
"course": [
{
"id": 1,
"fullname": "test_name",
"lang": "en"
}
],
"course_modules": [
{
"id": 1,
"course": 1,
"module": 1,
"instance": 1
}
],
"modules": [
{
"id": 1,
Expand Down
17 changes: 9 additions & 8 deletions tests/mod_bigbluebuttonbn/live_session/statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
}
},
"contextActivities": {
"grouping": [
"parent": [
{
"id": "http://www.example.org",
"id": "http://www.example.org/course/section.php?id=1",
"objectType": "Activity",
"definition": {
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "test_name"
}
"en": "test_name Section 0"
},
"type": "http://id.tincanapi.com/activitytype/section"
}
},
{
Expand All @@ -55,11 +56,11 @@
],
"category": [
{
"id": "http://moodle.org",
"id": "http://www.example.org",
"definition": {
"type": "http://id.tincanapi.com/activitytype/source",
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "Moodle"
"en": "test_name"
}
}
}
Expand Down
22 changes: 0 additions & 22 deletions tests/mod_bigbluebuttonbn/meeting_created/data.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
{
"user": [
{
"id": 1,
"firstname": "test_fullname",
"email": "[email protected]"
}
],
"course": [
{
"id": 1,
"fullname": "test_name",
"lang": "en"
}
],
"course_modules": [
{
"id": 1,
"course": 1,
"module": 1,
"instance": 1
}
],
"modules": [
{
"id": 1,
Expand Down
17 changes: 9 additions & 8 deletions tests/mod_bigbluebuttonbn/meeting_created/statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
}
},
"contextActivities": {
"grouping": [
"parent": [
{
"id": "http://www.example.org",
"id": "http://www.example.org/course/section.php?id=1",
"objectType": "Activity",
"definition": {
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "test_name"
}
"en": "test_name Section 0"
},
"type": "http://id.tincanapi.com/activitytype/section"
}
},
{
Expand All @@ -55,11 +56,11 @@
],
"category": [
{
"id": "http://moodle.org",
"id": "http://www.example.org",
"definition": {
"type": "http://id.tincanapi.com/activitytype/source",
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "Moodle"
"en": "test_name"
}
}
}
Expand Down
22 changes: 0 additions & 22 deletions tests/mod_bigbluebuttonbn/meeting_ended/data.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
{
"user": [
{
"id": 1,
"firstname": "test_fullname",
"email": "[email protected]"
}
],
"course": [
{
"id": 1,
"fullname": "test_name",
"lang": "en"
}
],
"course_modules": [
{
"id": 1,
"course": 1,
"module": 1,
"instance": 1
}
],
"modules": [
{
"id": 1,
Expand Down
17 changes: 9 additions & 8 deletions tests/mod_bigbluebuttonbn/meeting_ended/statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
}
},
"contextActivities": {
"grouping": [
"parent": [
{
"id": "http://www.example.org",
"id": "http://www.example.org/course/section.php?id=1",
"objectType": "Activity",
"definition": {
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "test_name"
}
"en": "test_name Section 0"
},
"type": "http://id.tincanapi.com/activitytype/section"
}
},
{
Expand All @@ -55,11 +56,11 @@
],
"category": [
{
"id": "http://moodle.org",
"id": "http://www.example.org",
"definition": {
"type": "http://id.tincanapi.com/activitytype/source",
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "Moodle"
"en": "test_name"
}
}
}
Expand Down
22 changes: 0 additions & 22 deletions tests/mod_bigbluebuttonbn/meeting_joined/data.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
{
"user": [
{
"id": 1,
"firstname": "test_fullname",
"email": "[email protected]"
}
],
"course": [
{
"id": 1,
"fullname": "test_name",
"lang": "en"
}
],
"course_modules": [
{
"id": 1,
"course": 1,
"module": 1,
"instance": 1
}
],
"modules": [
{
"id": 1,
Expand Down
17 changes: 9 additions & 8 deletions tests/mod_bigbluebuttonbn/meeting_joined/statements.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@
}
},
"contextActivities": {
"grouping": [
"parent": [
{
"id": "http://www.example.org",
"id": "http://www.example.org/course/section.php?id=1",
"objectType": "Activity",
"definition": {
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "test_name"
}
"en": "test_name Section 0"
},
"type": "http://id.tincanapi.com/activitytype/section"
}
},
{
Expand All @@ -55,11 +56,11 @@
],
"category": [
{
"id": "http://moodle.org",
"id": "http://www.example.org",
"definition": {
"type": "http://id.tincanapi.com/activitytype/source",
"type": "http://id.tincanapi.com/activitytype/lms",
"name": {
"en": "Moodle"
"en": "test_name"
}
}
}
Expand Down
22 changes: 0 additions & 22 deletions tests/mod_bigbluebuttonbn/meeting_left/data.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
{
"user": [
{
"id": 1,
"firstname": "test_fullname",
"email": "[email protected]"
}
],
"course": [
{
"id": 1,
"fullname": "test_name",
"lang": "en"
}
],
"course_modules": [
{
"id": 1,
"course": 1,
"module": 1,
"instance": 1
}
],
"modules": [
{
"id": 1,
Expand Down
Loading

0 comments on commit b3d6f59

Please sign in to comment.