48                $this->spl_obj =& $a_spl_obj;
 
   53                $this->mode = $a_mode;
 
   55                $settings = $this->
ilias->getAllSettings();
 
   56                $this->inst_id = IL_INST_ID;
 
   62                                $this->export_dir = $this->spl_obj->getExportDirectory();
 
   63                                $this->subdir = $date.
"__".$this->inst_id.
"__".
 
   64                                        "spl".
"_".$this->spl_obj->getId();
 
   65                                $this->filename = $this->subdir.
".xml";
 
   99                $ilBench->start(
"SurveyQuestionpoolExport", 
"buildExportFile");
 
  102                $this->spl_obj->createExportDirectory();
 
  103                include_once 
"./Services/Utilities/classes/class.ilUtil.php";
 
  107                include_once 
"./Services/Logging/classes/class.ilLog.php";
 
  108                $expLog = 
new ilLog($this->spl_obj->getExportDirectory(), 
"export.log");
 
  110                $expLog->setLogFormat(
"");
 
  111                $expLog->write(date(
"[y-m-d H:i:s] ").
"Start Export");
 
  113                $qti_file = fopen($this->export_dir.
"/".$this->subdir.
"/". $this->filename, 
"w");
 
  114                fwrite($qti_file, $this->spl_obj->toXML($questions));
 
  117                $this->xml->_XmlWriter;
 
  120                        $this->export_dir.
"/".$this->subdir.
".zip");
 
  122                $expLog->write(date(
"[y-m-d H:i:s] ").
"Finished Export");
 
  123                $ilBench->stop(
"SurveyQuestionpoolExport", 
"buildExportFile");
 
  125                return $this->export_dir.
"/".$this->subdir.
".zip";
 
Export class for survey questionpools.
buildExportFile($questions=null)
build export file (complete zip file)
buildExportFileXML($questions=null)
build xml export file
ilSurveyQuestionpoolExport(&$a_spl_obj, $a_mode="xml")
Constructor @access public.
static zip($a_dir, $a_file, $compress_content=false)
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
redirection script todo: (a better solution should control the processing via a xml file)