public function split_category_path($names) { return parent::split_category_path($names); }
public 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(); }
public function create_question() { $default = new qformat_default(); $result = $default->defaultquestion(); $result->usecase = 0; // Ignore case $result->image = ''; // No image $result->questiontextformat = FORMAT_HTML; //HTML $result->answer = array(); $result->context = $this->get_context(); $category = $this->get_category(); $result->category = $category ? $category->name : ''; $result->resources = array(); return $result; }