ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
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(
66 [
67 ilObjBlogGUI::class,
68 \ILIAS\Blog\Export\ExportGUI::class
69 ],
70 "createExportFile"
71 );
72 }
73}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
onExportOptionSelected(ilExportHandlerConsumerContextInterface $context)
language handling
@ilCtrl_Calls ilObjBlogGUI: ilWorkspaceAccessGUI @ilCtrl_Calls ilObjBlogGUI: ilInfoScreenGUI,...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
global $DIC
Definition: shib_login.php:26