2019-03-12 09:45:26 +01:00
|
|
|
<?php
|
|
|
|
// This file is part of Moodle - https://moodle.org/
|
|
|
|
//
|
|
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines the built-in prediction models provided by the Moodle core.
|
|
|
|
*
|
|
|
|
* @package core
|
|
|
|
* @category analytics
|
|
|
|
* @copyright 2019 David Mudrák <david@moodle.com>
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
|
|
|
|
|
|
|
defined('MOODLE_INTERNAL') || die();
|
|
|
|
|
|
|
|
$models = [
|
|
|
|
[
|
MDL-65248 core_course: Move analytics targets to course
MOV [coursealreadyfinished, moodle], [coursealreadyfinished, course]
MOV [coursenotyetstarted, moodle], [coursenotyetstarted, course]
MOV [coursenotyetfinished, moodle], [coursenotyetfinished, course]
MOV [nocourseactivity, moodle], [nocourseactivity, course]
MOV [nocourseendtime, moodle], [nocourseendtime, course]
MOV [nocoursesections, moodle], [nocoursesections, course]
MOV [nocoursestudents, moodle], [nocoursestudents, course]
MOV [studentsatriskincourse, moodle], [studentsatriskincourse, course]
MOV [target:coursecompletion, moodle], [target:coursecompletion, course]
MOV [target:coursecompletion_help, moodle], [target:coursecompletion_help, course]
MOV [target:coursecompetencies, moodle], [target:coursecompetencies, course]
MOV [target:coursecompetencies_help, moodle], [target:coursecompetencies_help, course]
MOV [target:coursedropout, moodle], [target:coursedropout, course]
MOV [target:coursedropout_help, moodle], [target:coursedropout_help, course]
MOV [target:coursegradetopass, moodle], [target:coursegradetopass, course]
MOV [target:coursegradetopass_help, moodle], [target:coursegradetopass_help, course]
MOV [target:noteachingactivity, moodle], [target:noteachingactivity, course]
MOV [target:noteachingactivity_help, moodle], [target:noteachingactivity_help, course]
MOV [target:upcomingactivitiesdue, moodle], [target:upcomingactivitiesdue, course]
MOV [target:upcomingactivitiesdue_help, moodle], [target:upcomingactivitiesdue_help, course]
MOV [targetlabelstudentcompletionno, moodle], [targetlabelstudentcompletionno, course]
MOV [targetlabelstudentcompletionyes, moodle], [targetlabelstudentcompletionyes, course]
MOV [targetlabelstudentcompetenciesno, moodle], [targetlabelstudentcompetenciesno, course]
MOV [targetlabelstudentcompetenciesyes, moodle], [targetlabelstudentcompetenciesyes, course]
MOV [targetlabelstudentdropoutyes, moodle], [targetlabelstudentdropoutyes, course]
MOV [targetlabelstudentdropoutno, moodle], [targetlabelstudentdropoutno, course]
MOV [targetlabelstudentgradetopassno, moodle], [targetlabelstudentgradetopassno, course]
MOV [targetlabelstudentgradetopassyes, moodle], [targetlabelstudentgradetopassyes, course]
MOV [targetlabelteachingyes, moodle], [targetlabelteachingyes, course]
MOV [targetlabelteachingno, moodle], [targetlabelteachingno, course]
MOV [coursetoolong, analytics], [coursetoolong, course]
MOV [errorendbeforestart, analytics], [errorendbeforestart, course]
2019-04-08 12:31:28 +02:00
|
|
|
'target' => '\core_course\analytics\target\course_dropout',
|
2019-03-12 09:45:26 +01:00
|
|
|
'indicators' => [
|
|
|
|
'\core\analytics\indicator\any_access_after_end',
|
|
|
|
'\core\analytics\indicator\any_access_before_start',
|
|
|
|
'\core\analytics\indicator\any_write_action_in_course',
|
|
|
|
'\core\analytics\indicator\read_actions',
|
|
|
|
'\core_course\analytics\indicator\completion_enabled',
|
|
|
|
'\core_course\analytics\indicator\potential_cognitive_depth',
|
|
|
|
'\core_course\analytics\indicator\potential_social_breadth',
|
|
|
|
'\mod_assign\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_assign\analytics\indicator\social_breadth',
|
|
|
|
'\mod_book\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_book\analytics\indicator\social_breadth',
|
|
|
|
'\mod_chat\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_chat\analytics\indicator\social_breadth',
|
|
|
|
'\mod_choice\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_choice\analytics\indicator\social_breadth',
|
|
|
|
'\mod_data\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_data\analytics\indicator\social_breadth',
|
|
|
|
'\mod_feedback\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_feedback\analytics\indicator\social_breadth',
|
|
|
|
'\mod_folder\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_folder\analytics\indicator\social_breadth',
|
|
|
|
'\mod_forum\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_forum\analytics\indicator\social_breadth',
|
|
|
|
'\mod_glossary\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_glossary\analytics\indicator\social_breadth',
|
|
|
|
'\mod_imscp\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_imscp\analytics\indicator\social_breadth',
|
|
|
|
'\mod_label\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_label\analytics\indicator\social_breadth',
|
|
|
|
'\mod_lesson\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_lesson\analytics\indicator\social_breadth',
|
|
|
|
'\mod_lti\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_lti\analytics\indicator\social_breadth',
|
|
|
|
'\mod_page\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_page\analytics\indicator\social_breadth',
|
|
|
|
'\mod_quiz\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_quiz\analytics\indicator\social_breadth',
|
|
|
|
'\mod_resource\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_resource\analytics\indicator\social_breadth',
|
|
|
|
'\mod_scorm\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_scorm\analytics\indicator\social_breadth',
|
|
|
|
'\mod_survey\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_survey\analytics\indicator\social_breadth',
|
|
|
|
'\mod_url\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_url\analytics\indicator\social_breadth',
|
|
|
|
'\mod_wiki\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_wiki\analytics\indicator\social_breadth',
|
|
|
|
'\mod_workshop\analytics\indicator\cognitive_depth',
|
|
|
|
'\mod_workshop\analytics\indicator\social_breadth',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
[
|
MDL-65248 core_course: Move analytics targets to course
MOV [coursealreadyfinished, moodle], [coursealreadyfinished, course]
MOV [coursenotyetstarted, moodle], [coursenotyetstarted, course]
MOV [coursenotyetfinished, moodle], [coursenotyetfinished, course]
MOV [nocourseactivity, moodle], [nocourseactivity, course]
MOV [nocourseendtime, moodle], [nocourseendtime, course]
MOV [nocoursesections, moodle], [nocoursesections, course]
MOV [nocoursestudents, moodle], [nocoursestudents, course]
MOV [studentsatriskincourse, moodle], [studentsatriskincourse, course]
MOV [target:coursecompletion, moodle], [target:coursecompletion, course]
MOV [target:coursecompletion_help, moodle], [target:coursecompletion_help, course]
MOV [target:coursecompetencies, moodle], [target:coursecompetencies, course]
MOV [target:coursecompetencies_help, moodle], [target:coursecompetencies_help, course]
MOV [target:coursedropout, moodle], [target:coursedropout, course]
MOV [target:coursedropout_help, moodle], [target:coursedropout_help, course]
MOV [target:coursegradetopass, moodle], [target:coursegradetopass, course]
MOV [target:coursegradetopass_help, moodle], [target:coursegradetopass_help, course]
MOV [target:noteachingactivity, moodle], [target:noteachingactivity, course]
MOV [target:noteachingactivity_help, moodle], [target:noteachingactivity_help, course]
MOV [target:upcomingactivitiesdue, moodle], [target:upcomingactivitiesdue, course]
MOV [target:upcomingactivitiesdue_help, moodle], [target:upcomingactivitiesdue_help, course]
MOV [targetlabelstudentcompletionno, moodle], [targetlabelstudentcompletionno, course]
MOV [targetlabelstudentcompletionyes, moodle], [targetlabelstudentcompletionyes, course]
MOV [targetlabelstudentcompetenciesno, moodle], [targetlabelstudentcompetenciesno, course]
MOV [targetlabelstudentcompetenciesyes, moodle], [targetlabelstudentcompetenciesyes, course]
MOV [targetlabelstudentdropoutyes, moodle], [targetlabelstudentdropoutyes, course]
MOV [targetlabelstudentdropoutno, moodle], [targetlabelstudentdropoutno, course]
MOV [targetlabelstudentgradetopassno, moodle], [targetlabelstudentgradetopassno, course]
MOV [targetlabelstudentgradetopassyes, moodle], [targetlabelstudentgradetopassyes, course]
MOV [targetlabelteachingyes, moodle], [targetlabelteachingyes, course]
MOV [targetlabelteachingno, moodle], [targetlabelteachingno, course]
MOV [coursetoolong, analytics], [coursetoolong, course]
MOV [errorendbeforestart, analytics], [errorendbeforestart, course]
2019-04-08 12:31:28 +02:00
|
|
|
'target' => '\core_course\analytics\target\no_teaching',
|
2019-03-12 09:45:26 +01:00
|
|
|
'indicators' => [
|
|
|
|
'\core_course\analytics\indicator\no_teacher',
|
|
|
|
'\core_course\analytics\indicator\no_student',
|
|
|
|
],
|
|
|
|
'timesplitting' => '\core\analytics\time_splitting\single_range',
|
|
|
|
'enabled' => true,
|
|
|
|
],
|
2019-04-01 11:19:35 +02:00
|
|
|
[
|
|
|
|
'target' => '\core_user\analytics\target\upcoming_activities_due',
|
|
|
|
'indicators' => [
|
|
|
|
'\core_course\analytics\indicator\activities_due',
|
|
|
|
],
|
|
|
|
'timesplitting' => '\core\analytics\time_splitting\upcoming_week',
|
2019-05-13 13:00:17 +02:00
|
|
|
'enabled' => true,
|
2019-04-01 11:19:35 +02:00
|
|
|
],
|
2019-05-17 12:24:13 +02:00
|
|
|
[
|
|
|
|
'target' => '\core_course\analytics\target\no_access_since_course_start',
|
|
|
|
'indicators' => [
|
|
|
|
'\core\analytics\indicator\any_course_access',
|
|
|
|
],
|
|
|
|
'timesplitting' => '\core\analytics\time_splitting\one_month_after_start',
|
|
|
|
'enabled' => true,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'target' => '\core_course\analytics\target\no_recent_accesses',
|
|
|
|
'indicators' => [
|
|
|
|
'\core\analytics\indicator\any_course_access',
|
|
|
|
],
|
|
|
|
'timesplitting' => '\core\analytics\time_splitting\past_month',
|
|
|
|
'enabled' => true,
|
|
|
|
],
|
2019-03-12 09:45:26 +01:00
|
|
|
];
|