24 require_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
57 $ilDB = $DIC->database();
60 $this->glo_obj = $a_glo_obj;
64 $this->mode = $a_mode;
71 switch ($this->mode) {
73 $this->export_dir = $this->glo_obj->getExportDirectory();
74 $this->subdir = $date .
"__" . $this->inst_id .
"__" .
75 $this->glo_obj->getType() .
"_" . $this->glo_obj->getId();
76 $this->filename = $this->subdir .
".xml";
80 $this->export_dir = $this->glo_obj->getExportDirectory(
"html");
81 $this->subdir = $this->glo_obj->getType() .
"_" . $this->glo_obj->getId();
82 $this->filename = $this->subdir .
".zip";
101 switch ($this->mode) {
117 require_once(
"./Services/Xml/classes/class.ilXmlWriter.php");
122 $this->xml->
xmlSetDtdDef(
"<!DOCTYPE ContentObject SYSTEM \"http://www.ilias.uni-koeln.de/download/dtd/ilias_co_3_7.dtd\">");
125 $this->xml->xmlSetGenCmt(
"Export of ILIAS Glossary " .
126 $this->glo_obj->getId() .
" of installation " . $this->inst .
".");
129 $this->xml->xmlHeader();
132 $this->glo_obj->createExportDirectory();
137 $expDir = $this->glo_obj->getExportDirectory();
138 include_once
'./Services/Logging/classes/class.ilLog.php';
139 $expLog =
new ilLog($expDir,
"export.log");
141 $expLog->setLogFormat(
"");
142 $expLog->write(
date(
"[y-m-d H:i:s] ") .
"Start Export");
145 $this->glo_obj->exportXML(
148 $this->export_dir .
"/" . $this->subdir,
155 $this->xml->xmlDumpFile($this->export_dir .
"/" . $this->subdir .
"/" . $this->filename,
false);
159 $this->export_dir .
"/" . $this->subdir,
160 $this->export_dir .
"/" . $this->subdir .
".zip" 164 $this->xml->_XmlWriter;
166 $expLog->write(
date(
"[y-m-d H:i:s] ") .
"Finished Export");
168 return $this->export_dir .
"/" . $this->subdir .
".zip";
177 $this->glo_obj->createExportDirectory(
"html");
180 $expDir = $this->glo_obj->getExportDirectory();
183 $this->glo_obj->exportHTML($this->export_dir .
"/" . $this->subdir, $expLog);
buildExportFileHTML()
build html export file
xmlSetDtdDef($dtdDef)
Sets dtd definition.
buildExportFileXML()
build export file (complete zip file)
buildExportFile()
build export file (complete zip file)
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
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 ...
__construct(&$a_glo_obj, $a_mode="xml")
Constructor public.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
Export class for content objects.