ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilBlogExportOptionHTML.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22use ILIAS\Export\ExportHandler\I\Consumer\Context\HandlerInterface as ilExportHandlerConsumerContextInterface;
24
26{
27 protected ilLanguage $lng;
28
29 public function init(
31 ): void {
32 $this->lng = $DIC->language();
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 'blog_exp_option_html';
49 }
50
51 public function getSupportedRepositoryObjectTypes(): array
52 {
53 return ['blog'];
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(ilObjBlogGUI::class, "createExportFile");
66 }
67}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
onExportOptionSelected(ilExportHandlerConsumerContextInterface $context)
language handling
@ilCtrl_Calls ilObjBlogGUI: ilBlogPostingGUI, ilWorkspaceAccessGUI @ilCtrl_Calls ilObjBlogGUI: ilInfo...
global $DIC
Definition: shib_login.php:26
$context
Definition: webdav.php:31