David Mudrák [Tue, 31 May 2011 06:35:26 +0000 (23:35 -0700)]
Merge pull request #9 from nebgor/MDL-27449
MDL-27449 SCORM module 1.9 converter
Aparup Banerjee [Mon, 30 May 2011 06:53:20 +0000 (14:53 +0800)]
MDL-27449 Backup - migrating scorm file within scorm module 1.9 backup converter
David Mudrák [Mon, 30 May 2011 23:26:18 +0000 (16:26 -0700)]
Merge pull request #7 from rwijaya/MDL-27441b
MDL-27441 mod_feedback 1.9 backup conversion
Aparup Banerjee [Thu, 26 May 2011 07:33:00 +0000 (15:33 +0800)]
MDL-27449 Backup - added scorm module 1.9 backup converter
David Mudrák [Mon, 30 May 2011 05:46:31 +0000 (22:46 -0700)]
Merge pull request #6 from rwijaya/MDL-27446b
MDL-27446 mod_lesson
Rossiani Wijaya [Mon, 30 May 2011 03:29:13 +0000 (11:29 +0800)]
MDL-27441 mod_feedback: added conversion code to restore 1.9 backup to 2.1 site
Rossiani Wijaya [Mon, 30 May 2011 02:56:31 +0000 (10:56 +0800)]
MDL-27446 mod_lesson: added conversion code to restore 1.9 backup to 2.1 site
David Mudrak [Sat, 28 May 2011 22:38:23 +0000 (00:38 +0200)]
The source passed to the migrate_directory() may not exist
In case the source $rootpath passed to the migrate_directory() does not
exist, an empty array is returned by the method. Note that if the
directory exists and is empty, the directory itself is converter so
there would be a new record created. However, the restore process
ignores these records anyway, as the directory records are created
automatically by certain file api methods.
David Mudrak [Sat, 28 May 2011 22:18:19 +0000 (00:18 +0200)]
Converter file manager's methods take relative path within the backup instead of the absolute path
David Mudrák [Fri, 27 May 2011 13:44:30 +0000 (06:44 -0700)]
Merge pull request #2 from rwijaya/MDL-27450
MDL-27450 mod_survey: added conversion code to restore 1.9 backup to 2.1
David Mudrák [Fri, 27 May 2011 13:34:38 +0000 (06:34 -0700)]
Merge pull request #1 from nebgor/MDL-27440_chunkyfix
MDL-27440 Backup - added database module 1.9 backup converter
David Mudrak [Fri, 27 May 2011 02:00:36 +0000 (04:00 +0200)]
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.
David Mudrak [Thu, 26 May 2011 16:37:15 +0000 (18:37 +0200)]
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.
David Mudrak [Thu, 26 May 2011 15:30:27 +0000 (17:30 +0200)]
Merge branch 'master' into backup-convert
Conflicts:
backup/util/xml/parser/processors/simplified_parser_processor.class.php
backup/util/xml/parser/simpletest/testparser.php
David Mudrak [Thu, 26 May 2011 14:55:50 +0000 (16:55 +0200)]
Added support for the on_xxx_start() event handler for MOD and BLOCK sub-paths
David Mudrak [Thu, 26 May 2011 13:56:54 +0000 (15:56 +0200)]
Added base class for the activity module subplugins
Rossiani Wijaya [Thu, 26 May 2011 05:25:18 +0000 (13:25 +0800)]
MDL-27450 mod_survey: added conversion code to restore 1.9 backup to 2.1 site
Aparup Banerjee [Tue, 24 May 2011 08:34:24 +0000 (16:34 +0800)]
MDL-27440 Backup - added database module 1.9 backup converter
Eloy Lafuente (stronk7) [Wed, 25 May 2011 22:26:54 +0000 (00:26 +0200)]
weekly release 2.1dev
Eloy Lafuente (stronk7) [Wed, 25 May 2011 20:34:51 +0000 (22:34 +0200)]
MDL-27625 rating - fix one merging problem
Eloy Lafuente (stronk7) [Wed, 25 May 2011 14:54:51 +0000 (16:54 +0200)]
MDL-27471 rating - whitespace cleanup
Eloy Lafuente (stronk7) [Wed, 25 May 2011 14:37:43 +0000 (16:37 +0200)]
Merge branch 'MDL-27625_master' of git://github.com/stronk7/moodle
Conflicts:
mod/forum/lib.php
David Mudrak [Wed, 25 May 2011 10:13:26 +0000 (12:13 +0200)]
MDL-27445 Fixed the deprecated call
Aparup Banerjee [Fri, 20 May 2011 07:46:01 +0000 (15:46 +0800)]
MDL-27445 added moodle1 backup converter for label
Eloy Lafuente (stronk7) [Wed, 25 May 2011 10:00:16 +0000 (12:00 +0200)]
MDL-27625 rating - consider RATING_UNSET_RATING a valid rating value
Eloy Lafuente (stronk7) [Wed, 25 May 2011 08:16:10 +0000 (10:16 +0200)]
Merge branch 'MDL-27594' of git://github.com/stronk7/moodle
David Mudrak [Tue, 24 May 2011 14:31:28 +0000 (16:31 +0200)]
MDL-27445 Fixed the deprecated call
Aparup Banerjee [Fri, 20 May 2011 09:57:43 +0000 (17:57 +0800)]
MDL-27445 added moodle1 backup converter for chat
David Mudrak [Tue, 24 May 2011 13:33:37 +0000 (15:33 +0200)]
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).
David Mudrak [Tue, 24 May 2011 13:24:21 +0000 (15:24 +0200)]
Activity module handler get_moduleid() replaced with get_cminfo()
David Mudrak [Tue, 24 May 2011 13:09:47 +0000 (15:09 +0200)]
Extended debugging information thrown by an exception
Eloy Lafuente (stronk7) [Tue, 24 May 2011 09:55:39 +0000 (11:55 +0200)]
MDL-27594 backup - out unused (and incorrect) condition + stronger tests
Eloy Lafuente (stronk7) [Sun, 22 May 2011 22:58:45 +0000 (00:58 +0200)]
MDL-27594 backup - fix start/end notifications on empty chunks
Sam Hemelryk [Tue, 24 May 2011 07:54:49 +0000 (15:54 +0800)]
MDL-22833 Cleaned up afterburner footer
Sam Hemelryk [Tue, 24 May 2011 07:32:27 +0000 (15:32 +0800)]
Merge branch 'MDL-22833' of git://github.com/MaryE/moodle.git
David Mudrak [Tue, 24 May 2011 07:21:38 +0000 (09:21 +0200)]
Merge branch 'MDL-27439' of git://github.com/nebgor/moodle into backup-convert
Eloy Lafuente (stronk7) [Mon, 23 May 2011 10:38:52 +0000 (12:38 +0200)]
MDL-27471 minor fixups
Sam Hemelryk [Wed, 11 May 2011 05:32:36 +0000 (13:32 +0800)]
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.
Eloy Lafuente (stronk7) [Mon, 23 May 2011 08:29:33 +0000 (10:29 +0200)]
Merge branch 'MDL-27532-master' of git://github.com/sammarshallou/moodle
Sam Hemelryk [Mon, 23 May 2011 03:32:23 +0000 (11:32 +0800)]
Merge branch 'master_MDL-25177_choice_windowfix' of git://github.com/danmarsden/moodle
Sam Hemelryk [Mon, 23 May 2011 03:24:39 +0000 (11:24 +0800)]
Merge branch 'MDL-27530_head' of git://github.com/grabs/moodle
Aparup Banerjee [Mon, 16 May 2011 09:23:22 +0000 (17:23 +0800)]
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.
Aparup Banerjee [Fri, 13 May 2011 06:39:51 +0000 (14:39 +0800)]
MDL-27428 accessibility : added keyboard support to navigational menus loaded via ajax.
Aparup Banerjee [Thu, 12 May 2011 06:54:33 +0000 (14:54 +0800)]
MDL-27428 accessibility : added keyboard navigation to dock arrow keys expand and collapse. enter and space will toggle actions.
Aparup Banerjee [Tue, 10 May 2011 08:44:18 +0000 (16:44 +0800)]
MDL-27428 accessibility : made navigation and settings menu category span nodes navigable using tabs with tabindex=0
Aparup Banerjee [Tue, 10 May 2011 06:50:27 +0000 (14:50 +0800)]
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.
Eloy Lafuente (stronk7) [Sun, 22 May 2011 22:58:45 +0000 (00:58 +0200)]
MDL-27594 backup - fix start/end notifications on empty chunks
David Mudrak [Fri, 20 May 2011 09:59:41 +0000 (11:59 +0200)]
Course files conversion
David Mudrak [Fri, 20 May 2011 09:23:49 +0000 (11:23 +0200)]
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.
David Mudrak [Fri, 20 May 2011 07:49:54 +0000 (09:49 +0200)]
The handlers now throw moodle1_convert_exception instead of convert_exception
David Mudrak [Fri, 20 May 2011 07:45:31 +0000 (09:45 +0200)]
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.
David Mudrak [Fri, 20 May 2011 07:43:50 +0000 (09:43 +0200)]
New get_nextid() method
This is useful for generating artificial database records ids.
David Mudrak [Fri, 20 May 2011 07:42:02 +0000 (09:42 +0200)]
Include a course file in the unit test
David Mudrak [Fri, 20 May 2011 07:40:47 +0000 (09:40 +0200)]
New method get_stash_itemids()
This will be useful to build inforef.xml files.
David Mudrak [Fri, 20 May 2011 07:39:22 +0000 (09:39 +0200)]
Trivial improvement of member variables doc
Aparup Banerjee [Fri, 20 May 2011 03:31:13 +0000 (11:31 +0800)]
MDL-27439 added moodle1 backup converter for assignment
- only recreates assignment module, not user data or submissions yet.
David Mudrak [Thu, 19 May 2011 12:25:37 +0000 (14:25 +0200)]
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.
David Mudrak [Thu, 19 May 2011 11:56:43 +0000 (13:56 +0200)]
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.
Andrew Davis (andyjdavis) [Wed, 18 May 2011 06:42:50 +0000 (14:42 +0800)]
MDL-27442 forum: allow forum to be restored into 2.1 from a 1.9 backup
David Mudrak [Thu, 19 May 2011 01:17:18 +0000 (03:17 +0200)]
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.
Dan Marsden [Thu, 19 May 2011 01:01:21 +0000 (13:01 +1200)]
MDL-25177 Choice - fix typo for form creation causing pop-up window - thanks to Jason Hardin for fix
David Mudrak [Wed, 18 May 2011 14:32:51 +0000 (16:32 +0200)]
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.
David Mudrak [Wed, 18 May 2011 14:08:15 +0000 (16:08 +0200)]
Merge remote branch 'github/master' into backup-convert
sam marshall [Mon, 16 May 2011 16:16:38 +0000 (17:16 +0100)]
MDL-27532 Add backup support for course report per-course data
David Mudrak [Wed, 18 May 2011 12:33:05 +0000 (14:33 +0200)]
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.
David Mudrak [Wed, 18 May 2011 12:12:52 +0000 (14:12 +0200)]
Roles definition conversion
David Mudrak [Wed, 18 May 2011 12:10:04 +0000 (14:10 +0200)]
Implemented new XML transformer for the files being written during the conversion
David Mudrak [Wed, 18 May 2011 10:19:57 +0000 (12:19 +0200)]
Improved the information display about a non-standard backup file
Sam Hemelryk [Wed, 18 May 2011 10:11:10 +0000 (18:11 +0800)]
weekly release 2.1dev
Sam Hemelryk [Wed, 18 May 2011 09:29:39 +0000 (17:29 +0800)]
MDL-27161 Improved the 2 new strings in assignment
Sam Hemelryk [Wed, 18 May 2011 07:32:40 +0000 (15:32 +0800)]
MDL-26704 Fixed up variable typo
David Mudrak [Tue, 17 May 2011 23:38:33 +0000 (01:38 +0200)]
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.
David Mudrak [Tue, 17 May 2011 23:14:24 +0000 (01:14 +0200)]
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.
David Mudrak [Tue, 17 May 2011 22:55:24 +0000 (00:55 +0200)]
Fixed the class name in the calling code after a recent change
David Mudrak [Tue, 17 May 2011 22:54:00 +0000 (00:54 +0200)]
Added missing description of the moodle1 converter
David Mudrak [Tue, 17 May 2011 22:50:26 +0000 (00:50 +0200)]
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.
Eloy Lafuente (stronk7) [Tue, 17 May 2011 16:48:20 +0000 (18:48 +0200)]
MDL-27192 Global scope does not need global usage
Eloy Lafuente (stronk7) [Tue, 17 May 2011 16:44:16 +0000 (18:44 +0200)]
Merge branch 'wip-MDL-27192_MASTER' of git://github.com/jason-platts/moodle
Jason Platts [Tue, 17 May 2011 15:12:26 +0000 (16:12 +0100)]
MDL-27192 Page context error on calendar export with custom user
profile fields
Eloy Lafuente (stronk7) [Tue, 17 May 2011 12:19:23 +0000 (14:19 +0200)]
Merge branch 'MDL-27386_HEAD2' of git://github.com/rwijaya/moodle
Eloy Lafuente (stronk7) [Tue, 17 May 2011 09:58:22 +0000 (11:58 +0200)]
MDL-26704 gradebook: adding TODO comment to avoid forgetting
Eloy Lafuente (stronk7) [Tue, 17 May 2011 09:55:04 +0000 (11:55 +0200)]
Merge branch 'MDL-26704_user_outline_report_master' of git://github.com/andyjdavis/moodle
David Mudrak [Mon, 16 May 2011 17:05:34 +0000 (19:05 +0200)]
Fixed wrong class name
David Mudrak [Mon, 16 May 2011 17:02:13 +0000 (19:02 +0200)]
The main moodle_backup.xml file is now being generated by the converter
Andreas Grabs [Mon, 16 May 2011 13:35:16 +0000 (15:35 +0200)]
MDL-27530 The webdav-repository loads empty files
Eloy Lafuente (stronk7) [Mon, 16 May 2011 07:23:42 +0000 (09:23 +0200)]
Merge branch 'MDL-26436_close_recordsets_master' of git://github.com/andyjdavis/moodle
Sam Hemelryk [Mon, 16 May 2011 04:28:18 +0000 (12:28 +0800)]
Merge branch 'MDL-27161_head' of git://github.com/rwijaya/moodle.git
Sam Hemelryk [Mon, 16 May 2011 04:14:11 +0000 (12:14 +0800)]
Merge branch 'MDL-27387_rating_scale_validation_master2' of git://github.com/andyjdavis/moodle
Sam Hemelryk [Mon, 16 May 2011 03:51:41 +0000 (11:51 +0800)]
Merge branch 'MDL-26075_head' of git://github.com/grabs/moodle
Sam Hemelryk [Mon, 16 May 2011 02:06:49 +0000 (10:06 +0800)]
Merge branch 'start_end_notifications' of git://github.com/stronk7/moodle
Sam Hemelryk [Mon, 16 May 2011 01:56:42 +0000 (09:56 +0800)]
Merge branch 'prevent_profiling_before_install' of git://github.com/stronk7/moodle
Glenn Ansley [Fri, 13 May 2011 13:18:26 +0000 (09:18 -0400)]
MDL-27494 choice - fixing incorrectly named column in backup
Eloy Lafuente (stronk7) [Mon, 16 May 2011 00:45:51 +0000 (02:45 +0200)]
Merge branch 'MDL-26436_close_recordsets2_master' of git://github.com/andyjdavis/moodle
David Mudrak [Fri, 13 May 2011 10:06:10 +0000 (12:06 +0200)]
Renamed converter factory method to more self-descriptive get_converter()
David Mudrak [Fri, 13 May 2011 08:16:25 +0000 (10:16 +0200)]
The current element's data are passed to the on_element_end() event handler
Rossiani Wijaya [Fri, 13 May 2011 06:14:19 +0000 (14:14 +0800)]
MDL-27386: fixed mform for lesson essay grading (head)
Sam Hemelryk [Tue, 10 May 2011 04:38:25 +0000 (12:38 +0800)]
MDL-27456 Fixed typo in comment/lib.php after last refatoring
David Mudrak [Fri, 13 May 2011 01:16:13 +0000 (03:16 +0200)]
Merge branch 'master' into backup-convert
David Mudrak [Fri, 13 May 2011 01:09:26 +0000 (03:09 +0200)]
Removing relics of the previous plan/tasks/steps based implementation
Kudos to Mark Nielsen for his initial work on this project. In his code,
Mark described the valuable logic of the conversion using a framework
mirroring plan/tasks/steps based architecture of the backup and restore.
My attempt to simplify it led to the current handlers-based
architecture.
David Mudrak [Fri, 13 May 2011 00:42:44 +0000 (02:42 +0200)]
MDL-27444 Choice module 1.9 backup converts to 2.0 format
So far, user related data are not supported by the project.