function qformat_qti2::exportpreprocess in Quiz 6.6
Same name and namespace in other branches
- 6.5 includes/moodle/question/format/qti2/format.php \qformat_qti2::exportpreprocess()
Do any pre-processing that may be required
Parameters
boolean success:
Overrides qformat_default::exportpreprocess
1 call to qformat_qti2::exportpreprocess()
- qformat_qti2::export_quiz in includes/
moodle/ question/ format/ qti2/ format.php - exports a quiz (as opposed to exporting a category of questions)
File
- includes/
moodle/ question/ format/ qti2/ format.php, line 117
Class
Code
function exportpreprocess() {
global $CFG;
require_once "{$CFG->libdir}/smarty/Smarty.class.php";
// assign the language for the export: by parameter, SESSION, USER, or the default of 'en'
$lang = current_language();
$this->lang = $lang;
return parent::exportpreprocess();
}