68 Commits

Author SHA1 Message Date
David Mudrak
30d5190a9b MDL-27452 Workshop 1.9 backups conversion support 2011-06-09 00:00:03 +02:00
David Mudrak
de6aaa7295 MDL-26683 workshop: fixed typos in code comments 2011-03-04 13:03:49 +01:00
David Mudrak
1dade8b185 MDL-26546 Workshop: fixed embedded images in Number of errors grading form
Because of this typo, embedded images were not loaded when the
assessment form was re-edited. Thanks Helen Foster for spotting this.
2011-02-22 22:19:16 +01:00
David Mudrak
7c26c3f875 MDL-26546 Workshop: fixed incorrect mapping name in the restore of assessment forms
There was a regression of 8fa86f and ac0f8f where I changed the mapping
names but did not use the new names in add_related_files() call.

All credit goes to Eloy Lafuente for spotting the problem and giving me
a hint on how to fix it.
2011-02-22 00:54:13 +01:00
David Mudrak
d0fb170520 MDL-26312 Workshop: fixed upgrade of module instances from 1.9 to 2.0
The patch changes workshop_upgrade_module_instances() so that it
processes old workshop records ordered by their id and it keeps the
instances id by using import_record() instead of insert_record().
Thanks to this, there is no mapping of workshop ids needed so the
function workshop_upgrade_workshop_id_mappings() is dropped and all
callers use plain workshop record.
2011-02-11 07:43:04 +01:00
David Mudrak
cdff9eead3 NOMDL workshop more referential integrity checks
As reported by Trudy Koedooder at http://moodle.org/mod/forum/discuss.php?d=161322
there can be some orphaned grade records without the referenced
assessment. It threw upgrade error. Such grades are now just ignored
during the upgrade.
2010-11-10 16:02:07 +00:00
David Mudrak
65601f04a3 MDL-21249 workshop and its subplugins: fixing phpdocs @package and @subpackage 2010-09-30 14:44:33 +00:00
David Mudrak
ac0f8f4559 MDL-19936 workshopform subplugins restore: use get_namefor() as mapping identifier
As I realized in rubric, get_namefor() should be used so that both
get_mapping() and get_new_parentid() can be used.
2010-09-30 12:05:59 +00:00
David Mudrak
8fa86fb8c4 MDL-19936 workshopform_rubric: fixed a bug causing Moodle Features Demo restore fail 2010-09-30 11:14:53 +00:00
David Mudrak
d5f5406610 MDL-19936 workshopform_rubric: restore implemented 2010-09-29 23:12:20 +00:00
David Mudrak
f1c8bb26d7 MDL-19936 workshopform_numerrors: restore implemented 2010-09-29 23:11:47 +00:00
David Mudrak
47861eaace MDL-19936 workshopform_comments: restore implemented 2010-09-29 23:11:25 +00:00
David Mudrak
708684332d MDL-19936 workshopform_accumulative restore improvements 2010-09-29 23:10:48 +00:00
Petr Skoda
5924db724d fixed a few spelling problems and standardised stdClass 2010-09-18 14:18:39 +00:00
Petr Skoda
88bfbb926f fixed $newdimension typos 2010-09-18 14:02:11 +00:00
Petr Skoda
edef454e08 exception typos fixed 2010-09-18 14:01:13 +00:00
Petr Skoda
b6aad59910 fixed css syntax errors 2010-09-18 13:57:24 +00:00
David Mudrak
1149b075c7 MDL-24091 workshop: deleting orphaned subplugins data in an upgrade step 2010-09-17 13:25:45 +00:00
David Mudrak
346af1a431 MDL-24091 workshop: deleting subplugins data together with the workshop instance 2010-09-17 13:24:52 +00:00
Petr Skoda
ef14c1e724 MDL-24090 new detection of plugins that were not upgraded to work with Moodle 2.x (uses $plugin->requires) + bumping ancient versions of plugins 2010-09-05 20:36:18 +00:00
David Mudrak
ca7b6997a6 NOMDL Workshop: adding explicit type declaration for hidden form elements 2010-08-18 16:41:58 +00:00
Eloy Lafuente
8b494c68d3 MDL-19936 backup - added restore of eval->best and form->accumulative 2010-08-06 16:13:58 +00:00
Eloy Lafuente
a713e27db0 MDL-19936 backup - added missing "scale" annotation in accumulative subplugin 2010-08-06 16:12:59 +00:00
David Mudrak
2d3522ae1e NOMDL Fixed incorrect throwing of exceptions - missing 'new' or unknown exception class 2010-07-18 12:30:49 +00:00
David Mudrak
26b51f4e9d MDL-19936 MDL-22151 MDL-22245 backup/moodle2 support for workshopform_comments 2010-07-09 11:21:04 +00:00
David Mudrak
a4f2129dd1 MDL-19936 MDL-22151 MDL-22245 backup/moodle2 support for workshopform_numerrors 2010-07-09 11:20:40 +00:00
David Mudrak
f29917c590 MDL-19936 MDL-22151 MDL-22245 backup/moodle2 support for workshopform_rubric 2010-07-09 11:20:15 +00:00
David Mudrak
0fc5a5faf1 MDL-19936 MDL-22151 MDL-22245 backup/moodle2 support for mod_workshop, workshopeval_best and workshopform_accumulative 2010-07-09 11:19:39 +00:00
David Mudrak
0047a64f68 NOMDL workshop: rubric grid layout fixed after recent addition of assessment setting form 2010-07-08 14:08:27 +00:00
David Mudrak
2ffc732709 NOMDL workshop: CSS for rubric grading strategy moved to the plugin space 2010-07-08 13:19:35 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
David Mudrak
c6b784f09d Workshop: assessment weight can be set 2010-06-11 23:02:35 +00:00
David Mudrak
7a2d0f6125 MDL-17827 Workshop 2.0 supports scale usage checks now 2010-06-01 14:55:33 +00:00
David Mudrak
30c8dd34f7 MDL-15252 Re-committing all English strings exported from AMOS
From now on, all English strings use the new syntax. They are not
eval()'ed any more and the only valid placeholders are {$a} and
{$a->foobar}. No extra quotes escaping, dollar sign escaping and putting
double percent signs.

The modified files were exported from AMOS database repository in the
new syntax and were re-ordered by stringid. Standard GNU/GPL and PHPdoc
blocks are added. Where there was no copyright note so far, I added the
default one with Martin Dougiamas as the copyright holder.

Live long and prosper.
2010-04-10 14:01:45 +00:00
Petr Skoda
3a915b0667 MDL-21693 Dropping _utf8 suffix from language codes and folder names; enabling new string managers - please note the transition is not yet fully complete because we need to wait for git to recognize the renames in cvs 2010-04-10 07:24:56 +00:00
David Mudrak
f9b827d86e MDL-19937 workshop: migration of comments (no grading) strategy 2010-01-15 17:28:14 +00:00
David Mudrak
f5be71a379 MDL-19937 workshop migration from rubric 1.9 into rubric 2.0 2010-01-15 17:01:00 +00:00
David Mudrak
b188a4b3b0 MDL-19937 workshop: typo fixing and getting rid of forgotten variable 2010-01-15 13:36:43 +00:00
David Mudrak
455f42a447 MDL-19937 workshop migration from legacy criterion strategy into the new rubric grading strategy 2010-01-15 13:30:07 +00:00
David Mudrak
25e27d7461 MDL-19937 workshop migration of Number of errors grading strategy and fixed some forgotten todos 2010-01-07 20:57:58 +00:00
David Mudrak
b370027832 MDL-19937 workshop: fixed function names in form/accumulative migration code 2010-01-07 20:57:30 +00:00
David Mudrak
9ec63757d7 MDL-19937 migration of form elements and grades - accumulation grading strategy 2010-01-04 18:33:23 +00:00
David Mudrak
7a789aa8cc workshop coding style - use stdclass instead of stdClass 2010-01-04 18:30:57 +00:00
David Mudrak
e1aa152246 Yet another MySQL fix 2010-01-04 18:25:41 +00:00
David Mudrak
fc399336b3 An attempt to fix an SQL bug appearing at MySQL 2010-01-04 18:25:23 +00:00
David Mudrak
aabf73b7a1 MDL-19937 workshop migration - setting day zero versions 2010-01-04 18:24:52 +00:00
David Mudrak
f6e8b31802 workshop: general cleanup
Moving stuff from lib.php into static methods in localib.php. Removing
things from workshop core that were implemented in a subplugin. Dropping
stuff related to features not to be implemented in 2.0.
2010-01-04 18:22:10 +00:00
David Mudrak
d84d06ceff MDL-19930 workshop: comments grading strategy 2010-01-04 18:21:42 +00:00
David Mudrak
6f3535ac9c Rough search and replace accumulative > comments 2010-01-04 18:21:24 +00:00
David Mudrak
669314615f Initial copy of form/accumulative code 2010-01-04 18:21:04 +00:00