MDL-59079 core_analytics: Add social level 2 to various activities

Part of MDL-57791 epic.
This commit is contained in:
Ankit Agarwal 2017-05-31 15:18:29 +05:30 committed by David Monllao
parent a6805cc8e0
commit 3c305df1de
17 changed files with 131 additions and 128 deletions

View file

@ -42,4 +42,13 @@ abstract class activity_base extends \core_analytics\local\indicator\community_o
protected function get_activity_type() {
return 'lesson';
}
protected function feedback_viewed_events() {
return array('\mod_lesson\event\lesson_ended');
}
protected function feedback_check_grades() {
// We don't need to check grades as we get the feedback while completing the activity.
return false;
}
}