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


Static Public Member Functions | |
| static | choose_conversion_path ($format, array $descriptions) |
| end of public API ////////////////////////////////////////////////////// | |
Provides access to the protected methods we need to test
Definition at line 34 of file testconverthelper.php.
| static choose_conversion_path | ( | $ | format, |
| array $ | descriptions | ||
| ) | [static] |
end of public API //////////////////////////////////////////////////////
Choose the best conversion path for the given format
Given the source format and the list of available converters and their properties, this methods picks the most effective way how to convert the source format into the target moodle2 format. The method returns a list of converters that should be called, in order.
This implementation uses Dijkstra's algorithm to find the shortest way through the oriented graph.
| string | $format | the source backup format, one of backup::FORMAT_xxx |
| array | $descriptions | list of base_converter::description() indexed by the converter name |
Reimplemented from convert_helper.
Definition at line 36 of file testconverthelper.php.
