ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilForumExportOptionHTML Class Reference
+ Inheritance diagram for ilForumExportOptionHTML:
+ Collaboration diagram for ilForumExportOptionHTML:

Public Member Functions

 init (Container $DIC)
 
 getExportType ()
 
 getExportOptionId ()
 
 getSupportedRepositoryObjectTypes ()
 
 getLabel ()
 
 onExportOptionSelected (ilExportHandlerConsumerContextInterface $context)
 
 onDeleteFiles (ilExportHandlerConsumerContextInterface $context, \ILIAS\Export\ExportHandler\I\Consumer\File\Identifier\CollectionInterface $file_identifiers)
 
 onDownloadFiles (ilExportHandlerConsumerContextInterface $context, \ILIAS\Export\ExportHandler\I\Consumer\File\Identifier\CollectionInterface $file_identifiers)
 
 onDownloadWithLink (\ILIAS\Data\ReferenceId $reference_id, \ILIAS\Export\ExportHandler\I\Consumer\File\Identifier\HandlerInterface $file_identifier)
 
 getFiles (ilExportHandlerConsumerContextInterface $context)
 
 getFileSelection (ilExportHandlerConsumerContextInterface $context, \ILIAS\Export\ExportHandler\I\Consumer\File\Identifier\CollectionInterface $file_identifiers)
 
- Public Member Functions inherited from ILIAS\Export\ExportHandler\Consumer\ExportOption\BasicHandler
 __construct ()
 
 isObjectSupported (ObjectId $object_id)
 
 isPublicAccessPossible ()
 

Protected Attributes

ilLanguage $lng
 
ilCtrlInterface $ctrl
 

Detailed Description

Definition at line 26 of file class.ilForumExportOptionHTML.php.

Member Function Documentation

◆ getExportOptionId()

ilForumExportOptionHTML::getExportOptionId ( )

Definition at line 42 of file class.ilForumExportOptionHTML.php.

42 : string
43 {
44 return 'frm_exp_option_html';
45 }

◆ getExportType()

ilForumExportOptionHTML::getExportType ( )

Definition at line 37 of file class.ilForumExportOptionHTML.php.

37 : string
38 {
39 return 'html';
40 }

◆ getFiles()

ilForumExportOptionHTML::getFiles ( ilExportHandlerConsumerContextInterface  $context)

Definition at line 86 of file class.ilForumExportOptionHTML.php.

89 # Direct download on export creation, no local files
90 return $context->fileCollectionBuilder()->collection();
91 }
$context
Definition: webdav.php:31

◆ getFileSelection()

ilForumExportOptionHTML::getFileSelection ( ilExportHandlerConsumerContextInterface  $context,
\ILIAS\Export\ExportHandler\I\Consumer\File\Identifier\CollectionInterface  $file_identifiers 
)

Definition at line 93 of file class.ilForumExportOptionHTML.php.

97 # Direct download on export creation, no local files
98 return $context->fileCollectionBuilder()->collection();
99 }

◆ getLabel()

ilForumExportOptionHTML::getLabel ( )

Definition at line 52 of file class.ilForumExportOptionHTML.php.

52 : string
53 {
54 $this->lng->loadLanguageModule('exp');
55 return $this->lng->txt('exp_format_dropdown-html');
56 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getSupportedRepositoryObjectTypes()

ilForumExportOptionHTML::getSupportedRepositoryObjectTypes ( )

Definition at line 47 of file class.ilForumExportOptionHTML.php.

47 : array
48 {
49 return ['frm'];
50 }

◆ init()

ilForumExportOptionHTML::init ( Container  $DIC)

Definition at line 31 of file class.ilForumExportOptionHTML.php.

31 : void
32 {
33 $this->lng = $DIC->language();
34 $this->ctrl = $DIC->ctrl();
35 }
language()
Get interface to the i18n service.
Definition: Container.php:95
ctrl()
Get the interface to the control structure.
Definition: Container.php:63

References ILIAS\DI\Container\ctrl(), ILIAS\Repository\ctrl(), ILIAS\DI\Container\language(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ onDeleteFiles()

ilForumExportOptionHTML::onDeleteFiles ( ilExportHandlerConsumerContextInterface  $context,
\ILIAS\Export\ExportHandler\I\Consumer\File\Identifier\CollectionInterface  $file_identifiers 
)

Definition at line 65 of file class.ilForumExportOptionHTML.php.

68 : void {
69 # Direct download on export creation, no local files
70 }

◆ onDownloadFiles()

ilForumExportOptionHTML::onDownloadFiles ( ilExportHandlerConsumerContextInterface  $context,
\ILIAS\Export\ExportHandler\I\Consumer\File\Identifier\CollectionInterface  $file_identifiers 
)

Definition at line 72 of file class.ilForumExportOptionHTML.php.

75 : void {
76 # Direct download on export creation, no local files
77 }

◆ onDownloadWithLink()

ilForumExportOptionHTML::onDownloadWithLink ( \ILIAS\Data\ReferenceId  $reference_id,
\ILIAS\Export\ExportHandler\I\Consumer\File\Identifier\HandlerInterface  $file_identifier 
)

Definition at line 79 of file class.ilForumExportOptionHTML.php.

82 : void {
83 # Direct download on export creation, no local files
84 }

◆ onExportOptionSelected()

ilForumExportOptionHTML::onExportOptionSelected ( ilExportHandlerConsumerContextInterface  $context)

Definition at line 58 of file class.ilForumExportOptionHTML.php.

58 : void
59 {
60 $fex_gui = new ilForumExportGUI();
61 $fex_gui->exportHTML();
62 $this->ctrl->redirectByClass(ilObjForumGUI::class, 'export');
63 }
Forum export to HTML and Print.

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ilForumExportOptionHTML::$ctrl
protected

Definition at line 29 of file class.ilForumExportOptionHTML.php.

◆ $lng

ilLanguage ilForumExportOptionHTML::$lng
protected

Definition at line 28 of file class.ilForumExportOptionHTML.php.


The documentation for this class was generated from the following file: