David Mudrak
8bcefb3254
Activity module handler get_moduleid() replaced with get_cminfo()
2011-05-24 16:01:00 +02:00
David Mudrak
6357693c8b
Extended debugging information thrown by an exception
2011-05-24 16:00:55 +02:00
Eloy Lafuente (stronk7)
eb78f0632d
MDL-27594 backup - fix start/end notifications on empty chunks
2011-05-24 11:01:00 +02:00
David Mudrak
8b866ce4b1
Merge branch 'MDL-27439' of git://github.com/nebgor/moodle into backup-convert
2011-05-24 09:21:38 +02:00
David Mudrak
8312ab674a
Course files conversion
2011-05-20 11:59:41 +02:00
David Mudrak
f3b0b1e552
The write_xml() does not put 'id' into attributes implicitly
...
In some situations - like in inforef.xml - we need id to be proper
nested citizen.
2011-05-20 11:29:00 +02:00
David Mudrak
716a9616e3
The handlers now throw moodle1_convert_exception instead of convert_exception
2011-05-20 10:19:28 +02:00
David Mudrak
26cac34a6c
Improved get_contextid()
...
For system and course levels, we do not need itemid as we work with
single system context and single course context only. Thanks to this, we
can generate contextid for the restored course even we do not know its
original id yet.
2011-05-20 10:19:28 +02:00
David Mudrak
6700d288b3
New get_nextid() method
...
This is useful for generating artificial database records ids.
2011-05-20 10:19:27 +02:00
David Mudrak
dbf6843a72
Include a course file in the unit test
2011-05-20 10:19:27 +02:00
David Mudrak
6d73f18573
New method get_stash_itemids()
...
This will be useful to build inforef.xml files.
2011-05-20 10:19:22 +02:00
David Mudrak
01b922fe70
Trivial improvement of member variables doc
2011-05-20 09:39:22 +02:00
Aparup Banerjee
be53cf4e4c
MDL-27439 added moodle1 backup converter for assignment
...
- only recreates assignment module, not user data or submissions yet.
2011-05-20 11:59:20 +08: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
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
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
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
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
Jason Platts
8acd718118
MDL-27192 Page context error on calendar export with custom user
...
profile fields
2011-05-17 16:12:26 +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
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
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
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
Sam Hemelryk
c23ee732c2
Merge branch 'MDL-26075_head' of git://github.com/grabs/moodle
2011-05-16 11:51:41 +08:00
Sam Hemelryk
d5a99a030c
Merge branch 'start_end_notifications' of git://github.com/stronk7/moodle
2011-05-16 10:06:49 +08:00
Sam Hemelryk
62ff4fe30b
Merge branch 'prevent_profiling_before_install' of git://github.com/stronk7/moodle
2011-05-16 09:56:42 +08:00
Glenn Ansley
3efd551351
MDL-27494 choice - fixing incorrectly named column in backup
2011-05-16 03:24:30 +02:00
Eloy Lafuente (stronk7)
bed4c52c67
Merge branch 'MDL-26436_close_recordsets2_master' of git://github.com/andyjdavis/moodle
2011-05-16 02:45:51 +02:00
David Mudrak
17d2e210b7
Renamed converter factory method to more self-descriptive get_converter()
2011-05-13 12:06:10 +02:00
David Mudrak
1cc0e42a86
The current element's data are passed to the on_element_end() event handler
2011-05-13 10:16:25 +02:00
Rossiani Wijaya
4bb7783ef1
MDL-27386: fixed mform for lesson essay grading (head)
2011-05-13 14:14:19 +08:00