Definition at line 38 of file ExportOptionBase.php.
◆ getFiles()
ILIAS\Export\HTML\ExportOptionBase::getFiles |
( |
ilExportHandlerConsumerContextInterface |
$context | ) |
|
Definition at line 99 of file ExportOptionBase.php.
101 : ilExportHandlerFileInfoCollectionInterface {
102 $collection_builder =
$context->fileCollectionBuilder();
103 $object_id = $this->data_factory->objId(
$context->exportObject()->getId());
104 foreach ($this->repo->getAllOfObjectId(
$context->exportObject()->getId()) as $file) {
105 $collection_builder = $collection_builder->withResourceIdentifier(
106 $this->repo->getResourceIdForIdString($file->getRid()),
107 $object_id,
108 $this
109 );
110 }
111 return $collection_builder->collection();
112 }
◆ getFileSelection()
ILIAS\Export\HTML\ExportOptionBase::getFileSelection |
( |
ilExportHandlerConsumerContextInterface |
$context, |
|
|
ilExportHandlerConsumerFileIdentifierCollectionInterface |
$file_identifiers |
|
) |
| |
Reimplemented in ilLearningModuleExportOptionHTML.
Definition at line 85 of file ExportOptionBase.php.
88 : ilExportHandlerFileInfoCollectionInterface {
89 $collection_builder =
$context->fileCollectionBuilder();
90 $file_identifiers_array = $file_identifiers->toStringArray();
92 if (in_array($file->getFileIdentifier(), $file_identifiers_array)) {
93 $collection_builder = $collection_builder->withFileInfo($file);
94 }
95 }
96 return $collection_builder->collection();
97 }
getFiles(ilExportHandlerConsumerContextInterface $context)
◆ init()
ILIAS\Export\HTML\ExportOptionBase::init |
( |
Container |
$DIC | ) |
|
◆ onDeleteFiles()
ILIAS\Export\HTML\ExportOptionBase::onDeleteFiles |
( |
ilExportHandlerConsumerContextInterface |
$context, |
|
|
ilExportHandlerConsumerFileIdentifierCollectionInterface |
$file_identifiers |
|
) |
| |
Definition at line 53 of file ExportOptionBase.php.
56 : void {
57 foreach ($file_identifiers as $file_identifier) {
58 $rid = $file_identifier->getIdentifier();
59 $this->repo->delete(
61 $rid
62 );
63 }
64 }
References $context.
◆ onDownloadFiles()
ILIAS\Export\HTML\ExportOptionBase::onDownloadFiles |
( |
ilExportHandlerConsumerContextInterface |
$context, |
|
|
ilExportHandlerConsumerFileIdentifierCollectionInterface |
$file_identifiers |
|
) |
| |
Definition at line 66 of file ExportOptionBase.php.
69 : void {
70 foreach ($file_identifiers as $file_identifier) {
71 $rid = $file_identifier->getIdentifier();
72 $this->repo->deliverFile($rid);
73 }
74 }
◆ onDownloadWithLink()
ILIAS\Export\HTML\ExportOptionBase::onDownloadWithLink |
( |
ReferenceId |
$reference_id, |
|
|
ilExportHandlerConsumerFileIdentifierInterface |
$file_identifier |
|
) |
| |
Definition at line 76 of file ExportOptionBase.php.
79 : void {
80 $rid = $file_identifier->getIdentifier();
81 $this->repo->deliverFile($rid);
83 }
◆ $ctrl
ilCtrl ILIAS\Export\HTML\ExportOptionBase::$ctrl |
|
protected |
◆ $data_factory
ilDataFactory ILIAS\Export\HTML\ExportOptionBase::$data_factory |
|
protected |
◆ $repo
◆ $stakeholder
The documentation for this class was generated from the following file: