19 declare(strict_types=1);
41 $this->storage = $DIC->
filesystem()->storage();
52 return "htlm_exp_option_html";
62 $this->
lng->loadLanguageModule(
'exp');
63 return $this->
lng->txt(
"exp_format_dropdown-html");
67 ilExportHandlerConsumerContextInterface
$context 69 $object = $context->exportObject();
84 $zip_file = LegacyPathHelper::createRelativePath(
85 $export_dir .
"/" . $date .
"__" .
IL_INST_ID .
"__" .
86 $object->getType() .
"_" . $object->getId() .
".zip" 89 $stream = $this->irss->consume()->stream($object->getResource()->getIdentification())->getStream();
90 $this->storage->writeStream($zip_file, $stream);
92 $this->
ctrl->redirect($context->exportGUIObject(), $context->exportGUIObject()::CMD_LIST_EXPORT_FILES);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getExportDirectory(int $a_obj_id, string $a_type="xml", string $a_obj_type="", string $a_entity="")
Get export directory for an repository object
Customizing of pimple-DIC for ILIAS.
onExportOptionSelected(ilExportHandlerConsumerContextInterface $context)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _createExportDirectory(int $a_obj_id, string $a_export_type="xml", string $a_obj_type="")
language()
Get interface to the i18n service.
filesystem()
Get the Filesystem service interface.
ctrl()
Get the interface to the control structure.
getSupportedRepositoryObjectTypes()