MDL-64783 analytics: Updated insight subject for course_enrolments
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
20d7f527b0
commit
02dfbf44a7
+1
-1
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user