mirror of
https://github.com/moodle/moodle.git
synced 2025-04-30 05:18:55 +02:00
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]
100 lines
4.7 KiB
PHP
100 lines
4.7 KiB
PHP
<?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 = [
|
|
[
|
|
'target' => '\core_course\analytics\target\course_dropout',
|
|
'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',
|
|
],
|
|
],
|
|
[
|
|
'target' => '\core_course\analytics\target\no_teaching',
|
|
'indicators' => [
|
|
'\core_course\analytics\indicator\no_teacher',
|
|
'\core_course\analytics\indicator\no_student',
|
|
],
|
|
'timesplitting' => '\core\analytics\time_splitting\single_range',
|
|
'enabled' => true,
|
|
],
|
|
[
|
|
'target' => '\core_user\analytics\target\upcoming_activities_due',
|
|
'indicators' => [
|
|
'\core_course\analytics\indicator\activities_due',
|
|
],
|
|
'timesplitting' => '\core\analytics\time_splitting\upcoming_week',
|
|
],
|
|
];
|