David Mudrák
64f7da2402
Merge pull request #2 from rwijaya/MDL-27450
...
MDL-27450 mod_survey: added conversion code to restore 1.9 backup to 2.1
2011-05-27 06:44:30 -07:00
David Mudrák
455fc30367
Merge pull request #1 from nebgor/MDL-27440_chunkyfix
...
MDL-27440 Backup - added database module 1.9 backup converter
2011-05-27 06:34:38 -07:00
David Mudrak
66f79e50a3
Files conversion support improved
...
The new file manager class is introduced. Once its public properties are
set, one can use it to migrate either a single file or a whole
directory. The course_files conversion reworked so that it uses the new
manager now. The files.xml written at the very end of the conversion,
giving all handlers a chance to migrate the files they need.
2011-05-27 04:13:34 +02:00
David Mudrak
826d17f274
MDL-27444 The choice module backup converter now uses on-start and on-end handlers to write <options> wrapper
...
This is mainly for the demonstration purposes, the previous form works
as well.
2011-05-26 18:37:15 +02:00
David Mudrak
f6f7a7266c
Merge branch 'master' into backup-convert
...
Conflicts:
backup/util/xml/parser/processors/simplified_parser_processor.class.php
backup/util/xml/parser/simpletest/testparser.php
2011-05-26 17:30:27 +02:00
David Mudrak
6cfa5a3220
Added support for the on_xxx_start() event handler for MOD and BLOCK sub-paths
2011-05-26 16:59:59 +02:00
David Mudrak
4ddf9ac6b5
Added base class for the activity module subplugins
2011-05-26 16:59:51 +02:00
Rossiani Wijaya
39a35cc589
MDL-27450 mod_survey: added conversion code to restore 1.9 backup to 2.1 site
2011-05-26 13:25:18 +08:00
Aparup Banerjee
4c9c90fbe2
MDL-27440 Backup - added database module 1.9 backup converter
2011-05-26 11:32:05 +08:00
Eloy Lafuente (stronk7)
16b5541dd2
weekly release 2.1dev
2011-05-26 00:26:54 +02:00
Eloy Lafuente (stronk7)
c4cee99c7b
MDL-27625 rating - fix one merging problem
2011-05-25 22:34:51 +02:00
Eloy Lafuente (stronk7)
f2e725930b
MDL-27471 rating - whitespace cleanup
2011-05-25 16:54:51 +02:00
Eloy Lafuente (stronk7)
5b52ce19c5
Merge branch 'MDL-27625_master' of git://github.com/stronk7/moodle
...
Conflicts:
mod/forum/lib.php
2011-05-25 16:37:43 +02:00
David Mudrak
d777f26837
MDL-27445 Fixed the deprecated call
2011-05-25 12:13:26 +02:00
Aparup Banerjee
d1711071f4
MDL-27445 added moodle1 backup converter for label
2011-05-25 12:08:00 +02:00
Eloy Lafuente (stronk7)
5693d56cd8
MDL-27625 rating - consider RATING_UNSET_RATING a valid rating value
2011-05-25 12:00:16 +02:00
Eloy Lafuente (stronk7)
28e2b08582
Merge branch 'MDL-27594' of git://github.com/stronk7/moodle
2011-05-25 10:16:10 +02:00
David Mudrak
ad28527828
MDL-27445 Fixed the deprecated call
2011-05-24 16:31:28 +02:00
Aparup Banerjee
b391176a0b
MDL-27445 added moodle1 backup converter for chat
2011-05-24 16:17:51 +02:00
David Mudrak
2fe7d14a04
The generation of module.xml and friends moved to a later phase
...
This is needed to give the modules a chance to actually rewrite course
modules related information. Resource module needs this so it is able to
split its own information into its successors (url, folder, page etc).
2011-05-24 16:01:04 +02:00
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)
d4dd06591b
MDL-27594 backup - out unused (and incorrect) condition + stronger tests
2011-05-24 11:55:39 +02:00
Eloy Lafuente (stronk7)
eb78f0632d
MDL-27594 backup - fix start/end notifications on empty chunks
2011-05-24 11:01:00 +02:00
Sam Hemelryk
85d0c7f6b2
MDL-22833 Cleaned up afterburner footer
2011-05-24 15:54:49 +08:00
Sam Hemelryk
12b3d58286
Merge branch 'MDL-22833' of git://github.com/MaryE/moodle.git
2011-05-24 15:32:27 +08: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
Eloy Lafuente (stronk7)
b47dcdf0de
MDL-27471 minor fixups
2011-05-23 12:42:15 +02:00
Sam Hemelryk
2b04c41c58
MDL-27471 Adding mandatory component & ratingarea to the ratings API + other fixes
...
* Added the component and ratingarea fields and implemented it throughout
the rating API as mandatory fields
* Cleanup rating indexes
* Upgrade forum/data/glossary ratings
* Moved the logic in the render_rating method to methods of the rating object.
* Added new callback for checking ratingareas
* Cleaned comments here and there
* Mark the xxx_get_participants methods as deprecated
* Refactor rate_ajax and ratingsuser_can_view_aggregate methods
* Cleaned up rating/index.php to use html_table object and moved inline styles to CSS.
* Added missing properties of the rating object that were being set throughout the rating
API.
2011-05-23 12:35:39 +02:00
Eloy Lafuente (stronk7)
7a01a2d0ca
Merge branch 'MDL-27532-master' of git://github.com/sammarshallou/moodle
2011-05-23 10:29:33 +02:00
Sam Hemelryk
2c2034c9c3
Merge branch 'master_MDL-25177_choice_windowfix' of git://github.com/danmarsden/moodle
2011-05-23 11:32:23 +08:00
Sam Hemelryk
34997cf89e
Merge branch 'MDL-27530_head' of git://github.com/grabs/moodle
2011-05-23 11:24:39 +08:00
Aparup Banerjee
0193d9dfe7
MDL-27428 accessibility : added a fourth argument to event's subscription and delegation methods to specify selector actions.
...
- selected actions will fire the event through to the relevant handling functions.
2011-05-23 11:13:52 +08:00
Aparup Banerjee
f93844f3d7
MDL-27428 accessibility : added keyboard support to navigational menus loaded via ajax.
2011-05-23 11:13:36 +08:00
Aparup Banerjee
eb25449ae6
MDL-27428 accessibility : added keyboard navigation to dock arrow keys expand and collapse. enter and space will toggle actions.
2011-05-23 11:13:20 +08:00
Aparup Banerjee
32561cafd4
MDL-27428 accessibility : made navigation and settings menu category span nodes navigable using tabs with tabindex=0
2011-05-23 11:12:53 +08:00
Aparup Banerjee
1e22cd351f
MDL-27428 accessibility : allowed enter/space/left_arrow/right_arrow to expand/collapse navigation & settings menu branches
...
- note: a menu node branch that is a link will be followed instead of toggling the branch.
2011-05-23 11:12:35 +08:00
Eloy Lafuente (stronk7)
54b8f33421
MDL-27594 backup - fix start/end notifications on empty chunks
2011-05-23 00:58:45 +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