36         string $a_mode = 
"xml"    40         $ilDB = $DIC->database();
    42         $this->spl_obj = $a_spl_obj;
    45         $this->mode = $a_mode;
    50         switch ($this->mode) {
    52                 $this->export_dir = $this->spl_obj->getExportDirectory();
    53                 $this->subdir = $date . 
"__" . $this->inst_id . 
"__" .
    54                     "spl" . 
"_" . $this->spl_obj->getId();
    55                 $this->filename = $this->subdir . 
".xml";
    70         array $questions = null
    72         switch ($this->mode) {
    82         array $questions = null
    85         $this->spl_obj->createExportDirectory();
    89         $expLog = 
new ilLog($this->spl_obj->getExportDirectory(), 
"export.log");
    91         $expLog->setLogFormat(
"");
    92         $expLog->write(date(
"[y-m-d H:i:s] ") . 
"Start Export");
    94         $qti_file = fopen($this->export_dir . 
"/" . $this->subdir . 
"/" . $this->filename, 
'wb');
    95         fwrite($qti_file, $this->spl_obj->toXML($questions));
    99             $this->export_dir . 
"/" . $this->subdir,
   100             $this->export_dir . 
"/" . $this->subdir . 
".zip"   104         unlink($this->export_dir . 
"/" . $this->subdir . 
"/" . $this->filename);
   105         rmdir($this->export_dir . 
"/" . $this->subdir);
   107         $expLog->write(date(
"[y-m-d H:i:s] ") . 
"Finished Export");
   109         return $this->export_dir . 
"/" . $this->subdir . 
".zip";
 
Class ilObjSurveyQuestionPool. 
 
__construct(ilObjSurveyQuestionPool $a_spl_obj, string $a_mode="xml")
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
buildExportFile(array $questions=null)
build export file (complete zip file) 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilObjSurveyQuestionPool $spl_obj
 
buildExportFileXML(array $questions=null)
build xml export file 
 
static zip(string $a_dir, string $a_file, bool $compress_content=false)
 
static makeDir(string $a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...