◆ getExportOptionId()
ilHTLMExportOptionHTML::getExportOptionId |
( |
| ) |
|
◆ getExportType()
ilHTLMExportOptionHTML::getExportType |
( |
| ) |
|
◆ getLabel()
ilHTLMExportOptionHTML::getLabel |
( |
| ) |
|
◆ getSupportedRepositoryObjectTypes()
ilHTLMExportOptionHTML::getSupportedRepositoryObjectTypes |
( |
| ) |
|
◆ init()
ilHTLMExportOptionHTML::init |
( |
Container |
$DIC | ) |
|
◆ onExportOptionSelected()
ilHTLMExportOptionHTML::onExportOptionSelected |
( |
ilExportHandlerConsumerContextInterface |
$context | ) |
|
Definition at line 66 of file class.ilHTLMExportOptionHTML.php.
68 : void {
70
72 $object->getId(),
73 "html",
74 $object->getType()
75 );
77 $object->getId(),
78 "html",
79 $object->getType()
80 );
81
82
83 $date = time();
84 $zip_file = LegacyPathHelper::createRelativePath(
85 $export_dir .
"/" . $date .
"__" .
IL_INST_ID .
"__" .
86 $object->getType() . "_" . $object->getId() . ".zip"
87 );
88
89 $stream = $this->irss->consume()->stream($object->getResource()->getIdentification())->getStream();
90 $this->storage->writeStream($zip_file, $stream);
91
92 $this->
ctrl->redirect(
$context->exportGUIObject(),
$context->exportGUIObject()::CMD_LIST_EXPORT_FILES);
93 }
static _createExportDirectory(int $a_obj_id, string $a_export_type="xml", string $a_obj_type="")
static _getExportDirectory(int $a_obj_id, string $a_type="xml", string $a_obj_type="", string $a_entity="")
@depricated Get export directory for an repository object
◆ $ctrl
ilCtrl ilHTLMExportOptionHTML::$ctrl |
|
protected |
◆ $irss
IRSS ilHTLMExportOptionHTML::$irss |
|
protected |
◆ $lng
◆ $storage
The documentation for this class was generated from the following file: