-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME_CheckSkill.txt
129 lines (98 loc) · 4.53 KB
/
README_CheckSkill.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
Checkskill - Moodle module
===========================================================================================
This is a fork from Checklist plugin
https://github.com/davosmith/moodle-checklist
// Modifications by [email protected]
I have made additions to original code to get some new functionnalities
Checkskill Version : $module->release = 'JF-2.x (Build: 2014101300)';
This is a fork of master repositoy
1) Users may comment their Skills / Tasks and upload files or URL as prove of practice.
---------------------------------------------------------------------------------------
a) New DB tables 'checkskill_description' and 'checkskill_document'
b) New config parameter :
$CFG->checkskill_description_display
New script
./mod/checkskill/settings.php
c) New scripts
edit_description.php
edit_document.php
delete_description.php
delete_document.php
file_api.php
d) Scripts modification
lib.php :
// MOODLE 2.0 FILE API
function checkskill_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload) {
//Serves activite documents and other files.
function checkskill_send_file($course, $cm, $context, $filearea, $args) {
// Serves activite documents and other files.
locallib.php : many functions added or modified
New function view_select_export, select_items, *_description, *_document, checkskill_affiche_url
Functions modified : view_tabs, view, deleteitem, etc.
2) Import of Outcomes file (csv format) to get Outcomes as Items in Checkskill
------------------------------------------------------------------------------
Teachers may import Outcomes (outcomes.csv) files in Checkskill to get these outcomes as Items.
Furthermore any Item of Checkskill may be validated by the way of Moodle activity
(Assignment or Quizz for exemple) which uses the same Outcomes.
a) This does not affect any Checkskill DB tables
b) New config parameter :
$CFG->checkskill_outcomes_input
c) New scripts :
importexportoutcomes.php
import_outcomes.php
export_outcomes.php
export_selected_outcomes.php
select_export.php
cron_outcomes.php
d) Scripts modification
lib.php ::
// Process Outcomes as Items
$outcomesupdate = 0;
if (!empty($CFG->enableoutcomes)){
require_once($CFG->dirroot.'/mod/checkskill/cron_outcomes.php');
$outcomesupdate+=checkskill_cron_outcomes($lastlogtime);
}
if ($outcomesupdate) {
mtrace(" Updated $outcomesupdate checkmark(s) from outcomes changes");
}
// MOODLE 2.0 FILE API
function checkskill_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload) {
//Serves activite documents and other files.
function checkskill_send_file($course, $cm, $context, $filearea, $args) {
// Serves activite documents and other files.
locallib.php ::
function view_import_export() {
(...)
// MODIF JF 2012/03/18
if (USES_OUTCOMES && !empty($CFG->checkskill_outcomes_input)){
$importoutcomesurl = new moodle_url('/mod/checkskill/import_outcomes.php', array('id' => $this->cm->id));
$importoutcomesstr = get_string('import_outcomes', 'checkskill');
$exportoutcomesurl = new moodle_url('/mod/checkskill/select_export.php', array('id' => $this->cm->id));
$exportoutcomesstr = get_string('export_outcomes', 'checkskill');
echo "<a href='$importurl'>$importstr</a> <a href='$importoutcomesurl'>$importoutcomesstr</a> <a href='$exporturl'>$exportstr</a> <a href='$exportoutcomesurl'>$exportoutcomesstr</a>";
}
else{
echo "<a href='$importurl'>$importstr</a> <a href='$exporturl'>$exportstr</a>";
}
(...)
}
autoupdate.php
In function checkskill_autoupdate(
// MODIF JF 2012/03/18
if ($module == 'referentiel') {
return 0;
}
New localisation strings
lang/en/checkskill.php :: new strings
lang/fr/checkskill.php :: new strings and translation
Functions replacement :
In all scripts
error('error_message') -> print_error(get_string('error_code', 'checkskill'));
3) Backup / Restore :
------------------------------------------------------------------------------
./mod/checkskill/backup/moodle2 scripts completed for new tables
4) Installation
------------------------------------------------------------------------------
./mod/checkskill/install.xml
./mod/checkskill/upgrade.php
===========================================================================================