Commit graph

48241 commits

Author SHA1 Message Date
Tim Hunt
0eb253f7f6 MDL-20636 quiz restart preview button was missing since the renderer refactor. 2011-05-19 19:05:25 +01:00
Tim Hunt
d1770e4258 MDL-27410, MDL-27412 make the calculated* qtypes work in the statistics report. 2011-05-19 18:12:38 +01:00
Tim Hunt
39153237f5 MDL-20636 fix broken links in the statistics report. 2011-05-19 18:11:52 +01:00
Tim Hunt
2178cd3a12 MDL-20636 Dean's refactoring had broken the quiz summary page. 2011-05-19 17:52:52 +01:00
Tim Hunt
b130270d2d MDL-20636 Add support for hints to the calculated* questions. 2011-05-19 17:38:38 +01:00
Tim Hunt
cdece95ea4 MDL-27412 Upgrade the calculatedmulti question type to the new question engine. 2011-05-19 17:14:09 +01:00
David Mudrak
2304cbaacd Do not try to convert activity modules that do not have the converter implemented yet
This checks for the presence of moodle1 library in the module directory.
If there is no such file, the converter does not include the module in
the list of included modules.

Note that some files (like module.xml) are created for such skipped
modules anyway. But restore process seems to use the information from
moodle_backup.xml so it does not try to restore them.
2011-05-19 14:25:37 +02:00
David Mudrak
317f1c6f61 Generate fake XML files to make the restore process happy
With these changes I was able to restore the very first 1.9 course
containing a forum and a choice.
2011-05-19 13:56:43 +02:00
Andrew Davis (andyjdavis)
ab1da2675d MDL-27442 forum: allow forum to be restored into 2.1 from a 1.9 backup 2011-05-19 13:41:01 +02:00
Tim Hunt
efe3e87b61 MDL-27411 upgrade the calculatedsimple qtype to the new question engine. 2011-05-19 12:20:49 +01:00
David Mudrak
46ff8b0ecf The handler's process_xxx() method is not mandatory any more
It was realized that it is pretty common to register a convert_path just
to be able to attach on-start or on-end listeners to it, without actual
processing data. So now, the handler must provide at least one of these
three methods and the process_xxx() does not need to be there if it is
not needed.
2011-05-19 03:17:18 +02:00
Dan Marsden
6fa51b70a5 MDL-25177 Choice - fix typo for form creation causing pop-up window - thanks to Jason Hardin for fix 2011-05-19 13:01:21 +12:00
Tim Hunt
18f9b2d2cf MDL-27410 qtype_calculated fix basic question editing and preview.
At least, after these changes, I was able to create a calculated question through the Moodle UI and then preview it. I am sure more testing and fixing is needed to make sure everything works.
2011-05-18 21:15:25 +01:00
Tim Hunt
1da4060f65 MDL-27410 qtype_calculated works in my unit tests.
Probably does not work through the Moodle UI yet.
2011-05-18 17:21:26 +01:00
Tim Hunt
f580e0e4b0 MDL-20636 Fix some minor problems with the question unit tests. 2011-05-18 17:07:16 +01:00
David Mudrak
ae80f68f31 Improvements in moodle1_xml_handler external API
The methods are protected now as they are supposed to be used by
subclasses only. Added a new method to check if the output writer has
been opened.
2011-05-18 16:32:51 +02:00
David Mudrak
c18f90f22f Merge remote branch 'github/master' into backup-convert 2011-05-18 16:08:15 +02:00
sam marshall
5e0dae125d MDL-27532 Add backup support for course report per-course data 2011-05-18 14:56:11 +01:00
Tim Hunt
19e911a251 MDL-27410 qtype_calculated better errorhandling for invalid expressions.
Better method names.
2011-05-18 14:12:34 +01:00
David Mudrak
c171d28ebc The basic wrapper for question categories conversion
The QUESTION_CATEGORIES tag is optional in moodle.xml but the file
questions.xml is required by the moodle2 restore process. So here we
make sure that at least an empty file is created.
2011-05-18 14:33:05 +02:00
David Mudrak
ba66847b71 Roles definition conversion 2011-05-18 14:12:52 +02:00
David Mudrak
96f7c7ad72 Implemented new XML transformer for the files being written during the conversion 2011-05-18 14:10:04 +02:00
David Mudrak
71d1751c53 Improved the information display about a non-standard backup file 2011-05-18 12:19:57 +02:00
Sam Hemelryk
d04f7fb4a8 weekly release 2.1dev 2011-05-18 18:11:10 +08:00
Sam Hemelryk
f138b7c13b MDL-27161 Improved the 2 new strings in assignment 2011-05-18 17:29:39 +08:00
Sam Hemelryk
74cf2d0015 MDL-26704 Fixed up variable typo 2011-05-18 15:32:40 +08:00
David Mudrak
f666f14930 The first attempt to include backup conversion in the restore process
With this initial implementation, we do not display any information
about the backup contents yet. The non-standard backup file is just
silently converted at the beginning of the settings stage, as soon as
the restore controller is available.

In the future we will probably want to display the information about the
contents of the converted file as if we were restoring from standard
MBZ format. However this includes more work in the restore UI machinery
and I leave it open for now.
2011-05-18 01:55:27 +02:00
David Mudrak
3a0767218a The core_backup_renderer does not need the full backup information any more
In the previous implementation, the renderer needed full backup
information just to see if its type is TYPE_1COURSE or not. For
non-standard backups, we do not have the full backup information
available but we can easily decide if we are restoring the whole course
or just its part.
2011-05-18 01:14:24 +02:00
David Mudrak
d51345c7c6 Fixed the class name in the calling code after a recent change 2011-05-18 00:55:24 +02:00
David Mudrak
179982a400 Added missing description of the moodle1 converter 2011-05-18 00:54:00 +02:00
David Mudrak
4eb2a097c5 The display() method in backup/restore UI returns the HTML rather then echoing it
This implementation uses a hacky trick with the output buffer unless
someone finds a time to add support for returning the HTML from
quickforms.
2011-05-18 00:50:26 +02:00
Tim Hunt
0652547685 MDL-27410 qtype_calculated start working on the new code for the question type.
This is an attempt to start thinking about how to handle the dataset values.
2011-05-17 18:28:16 +01:00
Eloy Lafuente (stronk7)
faf0e91a4b MDL-27192 Global scope does not need global usage 2011-05-17 18:48:20 +02:00
Eloy Lafuente (stronk7)
79da959b55 Merge branch 'wip-MDL-27192_MASTER' of git://github.com/jason-platts/moodle 2011-05-17 18:44:16 +02:00
Tim Hunt
afe24f850b MDL-20636 Rename questiontype.php to questiontypebase.php. Also some conde-checker issues. 2011-05-17 16:46:57 +01:00
Jason Platts
8acd718118 MDL-27192 Page context error on calendar export with custom user
profile fields
2011-05-17 16:12:26 +01:00
Tim Hunt
8200ccd66f MDL-27411 qtype_calculatedsimple Fix lots of coding style issues. 2011-05-17 16:01:51 +01:00
Tim Hunt
29b689142f MDL-27412 qtype_calculatedmulti Fix lots of coding style issues. 2011-05-17 16:01:16 +01:00
Eloy Lafuente (stronk7)
4d7e02616b Merge branch 'MDL-27386_HEAD2' of git://github.com/rwijaya/moodle 2011-05-17 14:19:23 +02:00
stabijoh
f63e0bb61f MDL-27294 Fix for fusion and overlay themes on zooming text 2011-05-17 07:28:13 -04:00
Eloy Lafuente (stronk7)
94a74f549a MDL-26704 gradebook: adding TODO comment to avoid forgetting 2011-05-17 11:58:22 +02:00
Eloy Lafuente (stronk7)
dcc26efb70 Merge branch 'MDL-26704_user_outline_report_master' of git://github.com/andyjdavis/moodle 2011-05-17 11:55:04 +02:00
Tim Hunt
f184c65cda MDL-27410 Big cleanup of the coding style in qtype_calculated. 2011-05-16 18:48:50 +01:00
David Mudrak
383f6f63c7 Fixed wrong class name 2011-05-16 19:05:34 +02:00
David Mudrak
99a82518eb The main moodle_backup.xml file is now being generated by the converter 2011-05-16 19:02:13 +02:00
Andreas Grabs
a193a0cfa1 MDL-27530 The webdav-repository loads empty files 2011-05-16 15:35:16 +02:00
Tim Hunt
8f9145bb52 MDL-27505 Remove the ou-specific question types from the main branch.
The OU question types are now available from https://github.com/timhunt.
2011-05-16 08:30:44 +01:00
Eloy Lafuente (stronk7)
14c3fd5f83 Merge branch 'MDL-26436_close_recordsets_master' of git://github.com/andyjdavis/moodle 2011-05-16 09:23:42 +02:00
Sam Hemelryk
870b8b0402 Merge branch 'MDL-27161_head' of git://github.com/rwijaya/moodle.git 2011-05-16 12:28:18 +08:00
Sam Hemelryk
731d1b89ad Merge branch 'MDL-27387_rating_scale_validation_master2' of git://github.com/andyjdavis/moodle 2011-05-16 12:14:11 +08:00