19 declare(strict_types=1);
57 return "lm_exp_option_html";
67 $this->
lng->loadLanguageModule(
'exp');
68 return $this->
lng->txt(
"exp_format_dropdown-html");
72 ilExportHandlerConsumerContextInterface
$context,
73 ilExportHandlerConsumerFileIdentifierCollectionInterface $file_identifiers
74 ): ilExportHandlerFileInfoCollectionInterface {
75 $collection_builder = $context->fileCollectionBuilder();
76 $file_identifiers_array = $file_identifiers->toStringArray();
77 foreach ($this->
getFiles($context) as $file) {
78 if (in_array($file->getFileIdentifier(), $file_identifiers_array)) {
79 $collection_builder = $collection_builder->withFileInfo($file);
82 return $collection_builder->collection();
86 ilExportHandlerConsumerContextInterface
$context 88 $this->
ctrl->redirectByClass(ilObjContentObjectGUI::class,
"showExportOptionsHTML");
94 foreach ($this->lom_services->dataHelper()->getAllLanguages() as $language) {
95 $langs[] = $language->value();
97 $default_dirs = [
"_html"];
98 $default_dirs = array_merge($default_dirs, [
"_html_all"]);
99 return array_merge($default_dirs,
array_map(
function ($la) {
return "_html_" . $la; }, $langs));
getFileSelection(ilExportHandlerConsumerContextInterface $context, ilExportHandlerConsumerFileIdentifierCollectionInterface $file_identifiers)
getSubDirs(int $object_id)
onExportOptionSelected(ilExportHandlerConsumerContextInterface $context)
Customizing of pimple-DIC for ILIAS.
getFiles(ilExportHandlerConsumerContextInterface $context)
LOMServices $lom_services
language()
Get interface to the i18n service.
getSupportedRepositoryObjectTypes()
ctrl()
Get the interface to the control structure.