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
+1 -1
View File
@@ -1951,7 +1951,7 @@ $string['stringsnotset'] = 'The following strings are not defined in {$a}';
$string['studentnotallowed'] = 'Sorry, but you can not enter this course as \'{$a}\'';
$string['students'] = 'Students';
$string['studentsandteachers'] = 'Students and teachers';
$string['studentsatriskincourse'] = 'Students at risk of dropping out in {$a} course';
$string['studentsatriskincourse'] = 'Students at risk in {$a} course';
$string['subcategories'] = 'Subcategories';
$string['subcategory'] = 'Subcategory';
$string['subcategoryof'] = 'Subcategory of {$a}';
@@ -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.
*