47362 Commits

Author SHA1 Message Date
David Mudrak
a5fe591280 MDL-27376 MDL-27377 MDL-27378 Backup converters refactoring - still work in progress
This patch mainly adds support for dispatching path-start and path-end events,
defines API to access backup_ids_temp table. Some ideas emailed by Mark
after his first review of the code are incorporated already.
2011-05-11 03:28:39 +02:00
David Mudrak
1e2c735111 MDL-27376 MDL-27377 MDL-27378 Backup converters refactoring - work in progress
These are David's changes of Mark's code that replace the
plan/tasks/steps infrastructure with a bit simpler one. The changes will
be described in the next commit that will actually finish the
conversion.

TODO: refactor backup/converter/moodle1/stepslib.php into conversion
handlers.
2011-05-10 17:58:00 +02:00
David Mudrak
0164592b8c MDL-27376 MDL-27377 Backup converters API refactored
* Several base_converter methods made protected when there was no obvious
reason why they should be public (subject of eventual change still).
* The conversion chain now constructed in advance before any converter
class is instantiated, using Dijkstra's algorithm.
2011-05-10 17:57:59 +02:00
David Mudrak
e48477d94f MDL-22414 Fixed standard copyright file headers (R0417) 2011-05-10 17:57:59 +02:00
Eloy Lafuente (stronk7)
5b01180aed Apply parser processor new methods + observe $CFG->keeptempdirectoriesonbackup 2011-05-10 17:57:58 +02:00
Mark Nielsen
be85390109 Adding moodle_backup.xml generation and updating course structure step 2011-05-10 17:57:58 +02:00
Mark Nielsen
8e2c53665e Adding basic block instance conversion 2011-05-10 17:57:58 +02:00
Mark Nielsen
5aee1af3f1 Adding plugin abstract class and adding a step to activities to generate their module.xml 2011-05-10 17:57:57 +02:00
Mark Nielsen
7c9d2927b8 Cleanup from last commit, just wanted prototype code to be saved to VCS 2011-05-10 17:57:57 +02:00
Mark Nielsen
72c089f117 Adding in activity support and adding base forum classes as proof of concept 2011-05-10 17:57:57 +02:00
Mark Nielsen
534d4294a4 Section conversion 2011-05-10 17:57:57 +02:00
Mark Nielsen
30a4a49421 Figured out how to get the final task to work properly 2011-05-10 17:57:56 +02:00
Mark Nielsen
7125544864 Adding to moodle1 abstract structured step 2011-05-10 17:57:56 +02:00
Mark Nielsen
d2c32ec8a1 A start at a moodle1 abstract structured step 2011-05-10 17:57:56 +02:00
Mark Nielsen
be145927c5 Creating stepslib.php and taskslib.php 2011-05-10 17:57:55 +02:00
Mark Nielsen
56bd1ab0e1 Added use of get_contextid and fixed some problems 2011-05-10 17:57:55 +02:00
Philip Cali
a656fcb387 Adding the convert_file function to the file manager. 2011-05-10 17:57:55 +02:00
Mark Nielsen
62c5daf122 Adding doc block todos 2011-05-10 17:57:55 +02:00
Mark Nielsen
6c0235b375 Adding doc block 2011-05-10 17:57:54 +02:00
Mark Nielsen
e10e887905 Might make it faster... 2011-05-10 17:57:54 +02:00
Mark Nielsen
eba6af755c Re-arranging function definition 2011-05-10 17:57:53 +02:00
Philip Cali
142ec51fcd Added contextid generation... I think. 2011-05-10 17:57:53 +02:00
Mark Nielsen
970bc1f3e0 Adding root and final tasks 2011-05-10 17:57:53 +02:00
Mark Nielsen
bb2e1609c5 Full example implementation of the convert course step 2011-05-10 17:57:53 +02:00
Philip Cali
5c10f37b8a Adding vanilla 1.9 moodle.xml for unit testing. 2011-05-10 17:57:52 +02:00
Mark Nielsen
dda19810e0 Starting to unit test - fixed bugs, things are... working!?! 2011-05-10 17:57:52 +02:00
Mark Nielsen
653bc98b0e Fixing several bugs while actually trying to execute some of the code 2011-05-10 17:57:52 +02:00
Mark Nielsen
5af8804415 Moving converters into sub-directories so they can have other files and simpletest directories specific to them 2011-05-10 17:57:51 +02:00
Mark Nielsen
8450e2c41f Attempting to write up processing of the moodle.xml file - the converter collects all of the element paths to watch and then dispatches them to the convert_structure_step classes. 2011-05-10 17:57:51 +02:00
Mark Nielsen
c5c8b3503a Making the conversion process more re-usable 2011-05-10 17:57:51 +02:00
Mark Nielsen
1e8c265c2b Added converter format detection and added conversion logic to restore controller 2011-05-10 17:57:50 +02:00
Mark Nielsen
7336701ff1 Minor fixes and added more methods 2011-05-10 17:57:50 +02:00
Mark Nielsen
17252e2d8a Adding some of the base classes and starting to fill out their methods/properties 2011-05-10 17:57:50 +02:00
Eloy Lafuente (stronk7)
804ebc77b8 weekly release 2.1dev (emergency) 2011-05-06 14:44:46 +02:00
Eloy Lafuente (stronk7)
327c24beea Merge branch 'MDL-27394_master' of git://github.com/timhunt/moodle 2011-05-05 22:00:58 +02:00
Tim Hunt
7bbe96dc16 MDL-27394 Moodle 2.0 backup and restore may randomise the order of multichoice/numerical/shortanswer answers 2011-05-05 19:17:41 +01:00
Sam Hemelryk
a02f87a838 Merge branch 's9_MDL-27382_dropbox_get_file_fix_master' of github.com:dongsheng/moodle 2011-05-05 13:25:36 +08:00
Sam Hemelryk
74704aab26 Merge branch 's9_MDL-27381_overwrite_dialog_safari_master' of github.com:dongsheng/moodle 2011-05-05 13:22:15 +08:00
Sam Hemelryk
d6e0313e86 Merge branch 's9_MDL-26854_spam_comments_master_2' of git://github.com/dongsheng/moodle 2011-05-05 11:44:49 +08:00
Dongsheng Cai
480fe33538 MDL-26854 Added comments block lib.php, it contains comments callbacks 2011-05-05 11:22:39 +08:00
Sam Hemelryk
d045b479f4 Merge branch 's9_MDL-26854_spam_comments_master_2' of git://github.com/dongsheng/moodle 2011-05-05 10:41:53 +08:00
Dongsheng Cai
1448c5952f MDL-27381 fixed 'overwrite files' dialog zindex in safari 2011-05-05 10:41:02 +08:00
Sam Hemelryk
2c82d0eeb0 Merge branch 'MDL-26838_ratings_bad_data_master4' of git://github.com/andyjdavis/moodle 2011-05-05 10:18:39 +08:00
Dongsheng Cai
991aa8ab57 MDL-27382 repository dropbox plugin, fixed bug of
file downloading path
2011-05-05 09:58:49 +08:00
Eloy Lafuente (stronk7)
156816d0b5 weekly release 2.1dev 2011-05-05 00:35:40 +02:00
Eloy Lafuente (stronk7)
dd0ac53d7a Merge branch 'MDL-25594-HEAD' of git://github.com/srynot4sale/moodle 2011-05-04 16:08:59 +02:00
Sam Hemelryk
280b1b21c0 Merge branch 'MDL-26250-final6' of github.com:mouneyrac/moodle 2011-05-04 18:04:10 +08:00
Dongsheng Cai
c1951ea953 MDL-26854 COMMENT
1. added pluginname_comment_validate callback to comments api
2. change permission callback defaults to false
3. Tidied up serveal areas of comments and implemented callback to
ignore system permissions for view (credits to Sam Hemelryk)

AMOS BEGIN
    MOV [modulerejectcomment,error],[callbackrejectcomment,error]
AMOS END
2011-05-04 17:23:46 +08:00
Eloy Lafuente (stronk7)
5f0ac7652b Merge branch 'MDL-26788_head' of git://github.com/rwijaya/moodle 2011-05-04 11:18:22 +02:00
Dongsheng Cai
99b15d4438 MDL-26388 Recent repository plugin should return draft url 2011-05-04 17:03:19 +08:00