39         $ilDB = $DIC->database();
    41         $this->survey_obj = $a_survey_obj;
    44         $this->mode = $a_mode;
    48         switch ($this->mode) {
    50                 $this->export_dir = $this->survey_obj->getExportDirectory();
    51                 $this->subdir = $date . 
"__" . $this->inst_id . 
"__" .
    52                     "svy" . 
"_" . $this->survey_obj->getId();
    53                 $this->filename = $this->subdir . 
".xml";
    69         switch ($this->mode) {
    84         $this->survey_obj->createExportDirectory();
    89         $expDir = $this->survey_obj->getExportDirectory();
    90         $expLog = 
new ilLog($expDir, 
"export.log");
    92         $expLog->setLogFormat(
"");
    93         $expLog->write(date(
"[y-m-d H:i:s] ") . 
"Start Export");
    96         $xmlFile = fopen($this->export_dir . 
"/" . $this->subdir . 
"/" . $this->filename, 
'wb');
    97         fwrite($xmlFile, $this->survey_obj->toXML());
   104         ilFileUtils::zip($this->export_dir . 
"/" . $this->subdir, $this->export_dir . 
"/" . $this->subdir . 
".zip");
   106         if (file_exists($this->export_dir . 
"/" . $this->subdir . 
".zip")) {
   108             if (is_dir($this->export_dir . 
"/" . $this->subdir)) {
   112         $expLog->write(date(
"[y-m-d H:i:s] ") . 
"Finished Export");
   114         return $this->export_dir . 
"/" . $this->subdir . 
".zip";
   121         foreach ($mobs as $mob) {
   123             $mob_obj->exportFiles($a_export_dir);
   127         foreach ($this->survey_obj->questions as $question_id) {
   129             foreach ($mobs as $mob) {
   131                 $mob_obj->exportFiles($a_export_dir);
 exportXHTMLMediaObjects(string $a_export_dir)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
buildExportFileXML()
build xml export file 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively 
 
static zip(string $a_dir, string $a_file, bool $compress_content=false)
 
__construct(ilObjSurvey $a_survey_obj, $a_mode="xml")
 
static makeDir(string $a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...