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