24 include_once
"./Modules/Survey/classes/inc.SurveyConstants.php";
50 $this->spl_obj =& $a_spl_obj;
55 $this->mode = $a_mode;
57 $settings = $this->ilias->getAllSettings();
58 $this->inst_id = IL_INST_ID;
64 $this->export_dir = $this->spl_obj->getExportDirectory();
65 $this->subdir = $date.
"__".$this->inst_id.
"__".
66 "spl".
"__".$this->spl_obj->getId();
67 $this->filename = $this->subdir.
".xml";
101 $ilBench->start(
"SurveyQuestionpoolExport",
"buildExportFile");
104 $this->spl_obj->createExportDirectory();
107 $expDir = $this->spl_obj->getExportDirectory();
108 include_once
"./Services/Logging/classes/class.ilLog.php";
109 $expLog =
new ilLog($expDir,
"export.log");
111 $expLog->setLogFormat(
"");
112 $expLog->write(date(
"[y-m-d H:i:s] ").
"Start Export");
114 $qti_file = fopen($expDir .
"/" . $this->filename,
"w");
115 fwrite($qti_file, $this->spl_obj->toXML($questions));
119 $this->xml->_XmlWriter;
121 $expLog->write(date(
"[y-m-d H:i:s] ").
"Finished Export");
122 $ilBench->stop(
"SurveyQuestionpoolExport",
"buildExportFile");