Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

Provides support for the conversion of moodle1 backup to the moodle2 format Based off of a template @ http://docs.moodle.org/dev/Backup_1.9_conversion_for_developers

Copyright: 2011 Aparup Banerjee <aparup@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 308 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: moodle1_mod_wiki_handler  - X-Ref

Wiki conversion handler

get_paths()   X-Ref
Declare the paths in moodle.xml we are able to convert

The method returns list of {@link convert_path} instances.
For each path returned, the corresponding conversion method must be
defined.

Note that the path /MOODLE_BACKUP/COURSE/MODULES/MOD/WIKI does not
actually exist in the file. The last element with the module name was
appended by the moodle1_converter class.

return: array of {@link convert_path} instances

process_wiki($data)   X-Ref
This is executed every time we have one /MOODLE_BACKUP/COURSE/MODULES/MOD/WIKI
data available


on_wiki_entries_start()   X-Ref
No description

on_wiki_entries_end()   X-Ref
No description

process_wiki_entry($data)   X-Ref
No description

on_wiki_entry_end()   X-Ref
No description

on_wiki_pages_start()   X-Ref
No description

on_wiki_pages_end()   X-Ref
No description

process_wiki_entry_page($data)   X-Ref
No description

on_wiki_entry_page_end()   X-Ref
No description

on_wiki_end()   X-Ref
This is executed when we reach the closing </MOD> tag of our 'wiki' path