MDL-64783 analytics: Updated insight subject for course_enrolments

This commit is contained in:
David Monllaó
2019-04-09 00:29:57 +02:00
committed by Eloy Lafuente (stronk7)
parent 20d7f527b0
commit 02dfbf44a7
2 changed files with 12 additions and 1 deletions
@@ -50,6 +50,17 @@ abstract class course_enrolments extends \core_analytics\local\target\binary {
return '\core\analytics\analyser\student_enrolments';
}
/**
* Overwritten to show a simpler language string.
*
* @param int $modelid
* @param \context $context
* @return string
*/
public function get_insight_subject(int $modelid, \context $context) {
return get_string('studentsatriskincourse', 'moodle', $context->get_context_name(false));
}
/**
* Discards courses that are not yet ready to be used for training or prediction.
*