36        $this->glo_obj = $a_glo_obj;
 
   40        $this->mode = $a_mode;
 
   47        switch ($this->mode) {
 
   49                $this->export_dir = $this->glo_obj->getExportDirectory();
 
   50                $this->subdir = $date . 
"__" . $this->inst_id . 
"__" .
 
   51                    $this->glo_obj->getType() . 
"_" . $this->glo_obj->getId();
 
   52                $this->filename = $this->subdir . 
".xml";
 
   56                $this->export_dir = $this->glo_obj->getExportDirectory(
"html");
 
   57                $this->subdir = $this->glo_obj->getType() . 
"_" . $this->glo_obj->getId();
 
   58                $this->filename = $this->subdir . 
".zip";
 
   77        switch ($this->mode) {
 
   96        $this->xml->
xmlSetDtdDef(
"<!DOCTYPE ContentObject SYSTEM \"http://www.ilias.uni-koeln.de/download/dtd/ilias_co_3_7.dtd\">");
 
   99        $this->xml->xmlSetGenCmt(
"Export of ILIAS Glossary " .
 
  100            $this->glo_obj->getId() . 
" of installation " . $this->inst . 
".");
 
  103        $this->xml->xmlHeader();
 
  106        $this->glo_obj->createExportDirectory();
 
  111        $expDir = $this->glo_obj->getExportDirectory();
 
  112        $expLog = 
new ilLog($expDir, 
"export.log");
 
  114        $expLog->setLogFormat(
"");
 
  115        $expLog->write(date(
"[y-m-d H:i:s] ") . 
"Start Export");
 
  118        $this->glo_obj->exportXML(
 
  121            $this->export_dir . 
"/" . $this->subdir,
 
  128        $this->xml->xmlDumpFile($this->export_dir . 
"/" . $this->subdir . 
"/" . $this->filename, 
false);
 
  132            $this->export_dir . 
"/" . $this->subdir,
 
  133            $this->export_dir . 
"/" . $this->subdir . 
".zip" 
  137        $this->xml->_XmlWriter;
 
  139        $expLog->write(date(
"[y-m-d H:i:s] ") . 
"Finished Export");
 
  141        return $this->export_dir . 
"/" . $this->subdir . 
".zip";
 
  150        $this->glo_obj->createExportDirectory(
"html");
 
  153        $exp = new \ILIAS\Glossary\Export\GlossaryHtmlExport(
 
An exception for terminatinating execution or to throw for unit testing.
Export class for content objects.
buildExportFile()
build export file (complete zip file)
buildExportFileHTML()
build html export file
__construct(&$a_glo_obj, $a_mode="xml")
Constructor @access public.
buildExportFileXML()
build export file (complete zip file)
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
xmlSetDtdDef($dtdDef)
Sets dtd definition.