ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilGlossaryExportOptionHTML.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Export\ExportHandler\I\Consumer\Context\HandlerInterface as ilExportHandlerConsumerContextInterface;
24
26{
27 protected ilLanguage $lng;
28
29 public function init(Container $DIC): void
30 {
31 $this->lng = $DIC->language();
33 }
34
35 public function isPublicAccessPossible(): bool
36 {
37 return true;
38 }
39
40 public function getExportType(): string
41 {
42 return 'html';
43 }
44
45 public function getExportOptionId(): string
46 {
47 return 'glo_exp_option_html';
48 }
49
50 public function getSupportedRepositoryObjectTypes(): array
51 {
52 return ['glo'];
53 }
54
55 public function getLabel(): string
56 {
57 $this->lng->loadLanguageModule('exp');
58 return $this->lng->txt("exp_format_dropdown-html");
59 }
60
61 public function onExportOptionSelected(
62 ilExportHandlerConsumerContextInterface $context
63 ): void {
64 $this->ctrl->redirectByClass(ilObjGlossaryGUI::class, "exportHTML");
65 }
66}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
language()
Get interface to the i18n service.
Definition: Container.php:95
onExportOptionSelected(ilExportHandlerConsumerContextInterface $context)
language handling
GUI class for ilGlossary.
global $DIC
Definition: shib_login.php:26
$context
Definition: webdav.php:31