This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Export class for content objects
- Author
- Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
-
Databay AG ay@da.nosp@m.taba.nosp@m.y.de
Definition at line 29 of file class.ilContObjectExport.php.
◆ __construct()
ilContObjectExport::__construct |
( |
ilObjLearningModule |
$a_cont_obj, |
|
|
string |
$a_mode = "xml" , |
|
|
string |
$a_lang = "" |
|
) |
| |
Definition at line 45 of file class.ilContObjectExport.php.
References $DIC, $ilDB, IL_INST_ID, and ILIAS\Repository\int().
51 $this->export_factory =
new ExportFactory();
54 $ilDB = $DIC->database();
56 $this->cont_obj = $a_cont_obj;
58 $this->usr = $DIC->user();
60 $this->mode = $a_mode;
61 $this->lang = $a_lang;
66 switch ($this->mode) {
68 if ($this->lang ==
"") {
69 $this->export_dir = $this->cont_obj->getExportDirectory(
"html");
71 $this->export_dir = $this->cont_obj->getExportDirectory(
"html_" . $this->lang);
73 $this->subdir = $this->cont_obj->getType() .
"_" . $this->cont_obj->getId();
74 $this->filename = $this->subdir .
".zip";
78 $this->export_dir = $this->cont_obj->getExportDirectory();
79 $this->subdir = $date .
"__" . $this->inst_id .
"__" .
80 $this->cont_obj->getType() .
"_" . $this->cont_obj->getId();
81 $this->filename = $this->subdir .
".xml";
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ buildExportFile()
ilContObjectExport::buildExportFile |
( |
string |
$a_mode = "" | ) |
|
◆ buildExportFileHTML()
ilContObjectExport::buildExportFileHTML |
( |
| ) |
|
Definition at line 196 of file class.ilContObjectExport.php.
Referenced by buildExportFile().
199 if ($this->lang ==
"") {
200 $this->cont_obj->createExportDirectory(
"html");
202 $this->cont_obj->createExportDirectory(
"html_" . $this->lang);
206 $exp = new \ILIAS\LearningModule\Export\LMHtmlExport(
213 $exp->exportHTML(
true);
◆ getInstId()
ilContObjectExport::getInstId |
( |
| ) |
|
◆ $cont_obj
◆ $data_factory
DataFactory ilContObjectExport::$data_factory |
|
protected |
◆ $db
◆ $export_dir
string ilContObjectExport::$export_dir |
|
protected |
◆ $export_factory
ExportFactory ilContObjectExport::$export_factory |
|
protected |
◆ $filename
string ilContObjectExport::$filename |
|
protected |
◆ $inst
int ilContObjectExport::$inst |
|
protected |
◆ $inst_id
int ilContObjectExport::$inst_id |
◆ $lang
string ilContObjectExport::$lang |
|
protected |
◆ $mode
string ilContObjectExport::$mode |
◆ $subdir
string ilContObjectExport::$subdir |
|
protected |
◆ $usr
◆ $xml
The documentation for this class was generated from the following file: