19declare(strict_types=1);
40 $this->irss =
$DIC->resourceStorage();
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
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);
Customizing of pimple-DIC for ILIAS.
language()
Get interface to the i18n service.
ctrl()
Get the interface to the control structure.
The legacy path helper provides convenient functions for the integration of the filesystem service wi...
Class ilCtrl provides processing control methods.
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
onExportOptionSelected(ilExportHandlerConsumerContextInterface $context)
getSupportedRepositoryObjectTypes()
The filesystem interface provides the public interface for the Filesystem service API consumer.