Skip to content

Commit

Permalink
hardcode all verb display ltags
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Nov 12, 2024
1 parent 8ae97a0 commit ce0b4c4
Show file tree
Hide file tree
Showing 70 changed files with 93 additions and 93 deletions.
2 changes: 1 addition & 1 deletion src/transformer/events/all/course_module_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function course_module_viewed(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://id.tincanapi.com/verb/viewed',
'display' => [
$lang => 'Viewed'
'en' => 'Viewed'
],
],
'object' => utils\get_activity\course_module(
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_category_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function course_category_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/create',
'display' => [
$lang => 'Created'
'en' => 'Created'
],
],
'object' => utils\get_activity\course_category($config, $category),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_completed.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function course_completed(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/completed',
'display' => [
$lang => 'Completed'
'en' => 'Completed'
],
],
'object' => utils\get_activity\course($config, $course),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_completion_updated.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function course_completion_updated(array $config, \stdClass $event) {
'verb' => [
'id' => 'https://w3id.org/xapi/acrossx/verbs/edited',
'display' => [
$lang => 'Edited'
'en' => 'Edited'
],
],
'object' => [
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function course_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/create',
'display' => [
$lang => 'Created'
'en' => 'Created'
],
],
'object' => utils\get_activity\course($config, $course),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ function course_module_completion_updated(array $config, \stdClass $event) {
$verb = [
'id' => 'http://adlnet.gov/expapi/verbs/completed',
'display' => [
$lang => 'Completed'
'en' => 'Completed'
],
];
} else {
$verb = [
'id' => 'https://xapi.edlm/profiles/edlm-lms/concepts/verbs/uncompleted',
'display' => [
$lang => 'Uncompleted'
'en' => 'Uncompleted'
],
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_module_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function course_module_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/create',
'display' => [
$lang => 'Created'
'en' => 'Created'
],
],
'object' => utils\get_activity\course_module(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function course_resources_list_viewed(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://id.tincanapi.com/verb/viewed',
'display' => [
$lang => 'Viewed'
'en' => 'Viewed'
],
],
'object' => [
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_section_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function course_section_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/create',
'display' => [
$lang => 'Created',
'en' => 'Created',
],
],
'object' => utils\get_activity\course_section($config, $course, $event->objectid),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_updated.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function course_updated(array $config, \stdClass $event) {
'verb' => [
'id' => 'https://w3id.org/xapi/acrossx/verbs/edited',
'display' => [
$lang => 'Edited'
'en' => 'Edited'
],
],
'object' => utils\get_activity\course($config, $course),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/course_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function course_viewed(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://id.tincanapi.com/verb/viewed',
'display' => [
$lang => 'Viewed'
'en' => 'Viewed'
],
],
'object' => utils\get_activity\course($config, $course),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/group_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function group_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/create',
'display' => [
$lang => 'Created'
'en' => 'Created'
],
],
'object' => utils\get_activity\course_group($config, $course, $group),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/group_deleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function group_deleted(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/delete',
'display' => [
$lang => 'Deleted'
'en' => 'Deleted'
],
],
'object' => utils\get_activity\course_group($config, $course, $group),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/group_member_added.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function group_member_added(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/join',
'display' => [
$lang => 'Joined'
'en' => 'Joined'
],
],
'object' => utils\get_activity\course_group($config, $course, $group),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/group_member_removed.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function group_member_removed(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/leave',
'display' => [
$lang => 'Left'
'en' => 'Left'
],
],
'object' => utils\get_activity\course_group($config, $course, $group),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/group_message_sent.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function group_message_sent(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/send',
'display' => [
$lang => 'Sent'
'en' => 'Sent'
],
],
'object' => utils\get_activity\message($config, $lang, $message),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/question_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function question_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/create',
'display' => [
$lang => 'Created'
'en' => 'Created'
],
],
'object' => [
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/questions_imported.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function questions_imported(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/imported',
'display' => [
$lang => 'Imported'
'en' => 'Imported'
],
],
'object' => [
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/search_results_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function search_results_viewed(array $config, \stdClass $event) {
'verb' => [
'id' => 'https://w3id.org/xapi/acrossx/verbs/searched',
'display' => [
$lang => 'Searched'
'en' => 'Searched'
],
],
'object' => [
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/user_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function user_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/registered',
'display' => [
$lang => 'Registered'
'en' => 'Registered'
],
],
'object' => utils\get_activity\site($config),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/user_enrolment_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function user_enrolment_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'https://xapi.edlm/profiles/edlm-lms/concepts/verbs/enrolled',
'display' => [
$lang => 'Enrolled',
'en' => 'Enrolled',
],
],
'object' => utils\get_activity\course($config, $course),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/user_enrolment_deleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function user_enrolment_deleted(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/leave',
'display' => [
$lang => 'Left',
'en' => 'Left',
],
],
'object' => utils\get_activity\course($config, $course),
Expand Down
4 changes: 2 additions & 2 deletions src/transformer/events/core/user_enrolment_updated.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ function user_enrolment_updated(array $config, \stdClass $event) {
$verb = [
'id' => 'https://w3id.org/xapi/tla/verbs/suspended',
'display' => [
$lang => 'Suspended',
'en' => 'Suspended',
],
];
} else {
$verb = [
'id' => 'https://w3id.org/xapi/tla/verbs/resumed',
'display' => [
$lang => 'Resumed',
'en' => 'Resumed',
],
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/user_loggedin.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function user_loggedin(array $config, \stdClass $event) {
'verb' => [
'id' => 'https://xapi.edlm/profiles/edlm-lms/concepts/verbs/login',
'display' => [
$lang => 'Logged In',
'en' => 'Logged In',
],
],
'object' => utils\get_activity\site($config),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/core/user_loggedout.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function user_loggedout(array $config, \stdClass $event) {
'verb' => [
'id' => 'https://xapi.edlm/profiles/edlm-lms/concepts/verbs/logout',
'display' => [
$lang => 'Logged Out',
'en' => 'Logged Out',
],
],
'object' => utils\get_activity\site($config),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_assign/assignment_graded.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function assignment_graded(array $config, \stdClass $event) {
'verb' => [
'id' => 'https://w3id.org/xapi/tla/verbs/scored',
'display' => [
$lang => 'Scored',
'en' => 'Scored',
],
],
'object' => [
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_assign/feedback_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function feedback_viewed(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://id.tincanapi.com/verb/viewed',
'display' => [
$lang => 'Viewed'
'en' => 'Viewed'
],
],
'object' => [
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_bigbluebuttonbn/handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function create_statement(array $config, \stdClass $event, $evtid, $evtdispname
'verb' => [
'id' => $evtid,
'display' => [
$lang => $evtdispname
'en' => $evtdispname
],
],
'object' => utils\get_activity\course_module(
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_book/chapter_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function chapter_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/create',
'display' => [
$lang => 'Created'
'en' => 'Created'
],
],
'object' => utils\get_activity\book_chapter(
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_book/chapter_viewed.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function chapter_viewed(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://id.tincanapi.com/verb/viewed',
'display' => [
$lang => 'Viewed'
'en' => 'Viewed'
]
],
'object' => utils\get_activity\book_chapter($config, $course, $chapter, $event->contextinstanceid),
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_choice/answer_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function answer_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/answered',
'display' => [
$lang => 'Answered'
'en' => 'Answered'
],
],
'object' => utils\get_activity\course_module(
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_facetoface/cancel_booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function cancel_booking(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://id.tincanapi.com/verb/unregistered',
'display' => [
$lang => 'Unregistered'
'en' => 'Unregistered'
],
],
'object' => utils\get_activity\course_module(
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_facetoface/signup_success.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function signup_success(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/registered',
'display' => [
$lang => 'Registered'
'en' => 'Registered'
],
],
'object' => utils\get_activity\course_module(
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_facetoface/take_attendance.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function take_attendance(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/attended',
'display' => [
$lang => 'Attended'
'en' => 'Attended'
],
],
'object' => utils\get_activity\course_module(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function multichoice(
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/answered',
'display' => [
$lang => 'Answered'
'en' => 'Answered'
],
],
'object' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function multichoicerated(
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/answered',
'display' => [
$lang => 'Answered'
'en' => 'Answered'
],
],
'object' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function numerical(
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/answered',
'display' => [
$lang => 'Answered'
'en' => 'Answered'
],
],
'object' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function textarea(
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/answered',
'display' => [
$lang => 'Answered'
'en' => 'Answered'
],
],
'object' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function textfield(
'verb' => [
'id' => 'http://adlnet.gov/expapi/verbs/answered',
'display' => [
$lang => 'Answered'
'en' => 'Answered'
],
],
'object' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function response_submitted(array $config, \stdClass $event, array $actor) {
'verb' => [
'id' => 'http://activitystrea.ms/schema/1.0/submit',
'display' => [
$lang => 'Submitted'
'en' => 'Submitted'
],
],
'object' => utils\get_activity\course_module(
Expand Down
2 changes: 1 addition & 1 deletion src/transformer/events/mod_forum/discussion_created.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function discussion_created(array $config, \stdClass $event) {
'verb' => [
'id' => 'http://activitystrea.ms/create',
'display' => [
$lang => 'Created'
'en' => 'Created'
],
],
'object' => utils\get_activity\course_discussion($config, $course, $discussion),
Expand Down
Loading

0 comments on commit ce0b4c4

Please sign in to comment.