private function insertQuestion($matches) { $q_exporter = new ilQuestionExporter(); $ret = $q_exporter->exportQuestion($matches[2], "./objects/", "offline"); return $ret; }
/** * Get question js */ function getQuestionJsOfPage($a_no_interaction, $a_mode) { require_once './Modules/Scorm2004/classes/class.ilQuestionExporter.php'; $q_ids = $this->getPage()->getQuestionIds(); $js = array(); if (count($q_ids) > 0) { foreach ($q_ids as $q_id) { $q_exporter = new ilQuestionExporter($a_no_interaction); $js[$q_id] = $q_exporter->exportQuestion($q_id, null, $a_mode); } } return $js; }
private function insertQuestion($matches) { $q_exporter = new ilQuestionExporter(false); return $q_exporter->exportQuestion($matches[2]); }
/** * Get question js */ function getQuestionJsOfPage($a_no_interaction, $a_mode) { require_once './Modules/Scorm2004/classes/class.ilQuestionExporter.php'; $q_ids = $this->getPage()->getQuestionIds(); $js = array(); if (count($q_ids) > 0) { foreach ($q_ids as $q_id) { $q_exporter = new ilQuestionExporter($a_no_interaction); $image_path = null; if ($a_mode == "offline") { if ($this->getPage()->getParentType() == "sahs") { $image_path = "./objects/"; } if ($this->getPage()->getParentType() == "lm") { $image_path = "./assessment/0/" . $q_id . "/images/"; } } $js[$q_id] = $q_exporter->exportQuestion($q_id, $image_path, $a_mode); } } return $js; }