|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| get_paths () | |
| process_resource (array $data, array $raw) | |
| on_resource_end (array $data) | |
Protected Member Functions | |
| get_successor ($type, $reference) | |
| internal implementation details follow ///////////////////////////////// | |
Protected Attributes | |
| $fileman = null | |
| get_paths | ( | ) |
Declare the paths in moodle.xml we are able to convert
The method returns list of convert_path instances. For each path returned, the corresponding conversion method must be defined.
Note that the paths /MOODLE_BACKUP/COURSE/MODULES/MOD/RESOURCE do not actually exist in the file. The last element with the module name was appended by the moodle1_converter class.
| get_successor | ( | $ | type, |
| $ | reference | ||
| ) | [protected] |
internal implementation details follow /////////////////////////////////
Returns the handler of the new 2.0 mod type according the given type of the legacy 1.9 resource
| string | $type | the value of the 'type' field in 1.9 resource |
| string | $reference | a file path. Necessary to differentiate files from web URLs |
| moodle1_convert_exception | for the unknown types |
Definition at line 240 of file lib.php.


| on_resource_end | ( | array $ | data | ) |
| process_resource | ( | array $ | data, |
| array $ | raw | ||
| ) |