mirror of
https://github.com/moodle/moodle.git
synced 2025-02-19 07:41:02 +01:00
The solution is to not tidy the XML. The XML generated is already quite well laid out, and if we want it better, we should fix that, rather than trying to load the whole file into memory to reformat it. Also, while investigating this, I found that we were not handling the mime-type of the exported file very elegantly, so I added a new mime_type method (defaults to getting the mime type of the file extension).
FILE FORMATS FOR QUESTION IMPORT/EXPORT ------------------------------------ This directory contains plug-in sub-modules to add import-export formats for Moodle questions Each sub-module must contain at least a format.php file containing a class that contains functions for reading, writing, importing and exporting questions. For correct operation the class name must be based on the name of the containing directory, e.g., directory: webct class: class qformat_webct extends qformat_default { Most of them are based on the class found in question/format.php. See the comments therein for more information.