Skip to content
Snippets Groups Projects
Commit de7b62cc authored by Thomas Dondorf's avatar Thomas Dondorf
Browse files

lalog subplugins moved to this plugin

parent b6a13aaf
Branches
Tags
No related merge requests found
TODO.md 0 → 100644
# TODO
- [ ] Only show stats when there are more than X users registered in the course (to be GDPR-conform)
- [ ] Make sure only people enrolled can see the statistics
- [ ] Make `logstore_lanalytics` a dependency of this plugin
- [ ] Add event `view_analytics` (or a similar event)
## GDPR
- [ ] Verfahrensverzeichnis ausfüllen
- [ ] Create form for getting consent
- [ ] Implement setting to only track specific users/courses
## Big course test
- [ ] Generate a lot of data to test how the dashboard (especially the timecreated query) performs for big courses (> 1m events in a single course, power law regarding users)
## Release
- [ ] Check coding guidelines
- [ ] Check hurdles for Moodle store
\ No newline at end of file
<?php
// This file is part of Moodle - http://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/>.
/**
* Learning Analytics Log plugin definition
*
* @package local_learning_analytics
* @copyright Lehr- und Forschungsgebiet Ingenieurhydrologie - RWTH Aachen University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace local_learning_analytics\plugininfo;
use core\plugininfo\base;
defined('MOODLE_INTERNAL') || die();
class lalog extends base {
public function is_uninstall_allowed() {
return true;
}
}
\ No newline at end of file
{ {
"plugintypes": { "plugintypes": {
"lareport": "local\/learning_analytics\/reports" "lareport": "local\/learning_analytics\/reports",
"lalog": "local\/learning_analytics\/logs"
} }
} }
\ No newline at end of file
...@@ -24,4 +24,5 @@ ...@@ -24,4 +24,5 @@
$subplugins = [ $subplugins = [
'lareport' => 'local/learning_analytics/reports', 'lareport' => 'local/learning_analytics/reports',
'lalog' => 'local/learning_analytics/logs',
]; ];
<?php
// TODO
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="local/learning_analytics/logs/course_mobile/db" VERSION="20200212" COMMENT="XMLDB file for Moodle lalog/course_mobile"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../lib/xmldb/xmldb.xsd"
>
<TABLES>
<TABLE NAME="lalog_course_mobile" COMMENT="Daily Actions">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
<FIELD NAME="courseid" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
<FIELD NAME="mobile" TYPE="int" LENGTH="3" NOTNULL="true" SEQUENCE="false"/>
<FIELD NAME="event_count" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
</KEYS>
<INDEXES>
<INDEX NAME="courseid_mobile_idx" UNIQUE="true" FIELDS="courseid, mobile"/>
</INDEXES>
</TABLE>
</TABLES>
</XMLDB>
\ No newline at end of file
<?php
// This file is part of Moodle - http://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/>.
/**
* Strings for logstore_lanalytics
*
* @package logstore_lanalytics
* @copyright Lehr- und Forschungsgebiet Ingenieurhydrologie - RWTH Aachen University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['pluginname'] = 'Course Mobile Log';
<?php
// This file is part of Moodle - http://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/>.
/**
* Version info for daily actions lalog
*
* @package logstore_lanalytics
* @copyright Lehr- und Forschungsgebiet Ingenieurhydrologie - RWTH Aachen University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'lalog_course_mobile';
$plugin->version = 2020021700;
$plugin->requires = '2017111302';
\ No newline at end of file
...@@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die; ...@@ -26,7 +26,7 @@ defined('MOODLE_INTERNAL') || die;
$plugin->component = 'local_learning_analytics'; $plugin->component = 'local_learning_analytics';
$plugin->version = 2020021202; $plugin->version = 2020021800;
$plugin->release = 'v0.1.0-dev'; $plugin->release = 'v0.1.0-dev';
$plugin->maturity = MATURITY_ALPHA; $plugin->maturity = MATURITY_ALPHA;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment