◆ buildElements()
ilTestExportOptionXMLRES::buildElements |
( |
ilExportHandlerConsumerContextInterface |
$context, |
|
|
ObjectId |
$object_id, |
|
|
?array |
$file_identifiers = null |
|
) |
| |
|
protected |
Definition at line 131 of file class.ilTestExportOptionXMLRES.php.
References null, ILIAS\UI\examples\Deck\repository(), and ILIAS\Data\ObjectId\toInt().
Referenced by getFiles(), and getFileSelection().
135 : ilExportHandlerFileInfoCollectionInterface {
136 if ($file_identifiers ===
null) {
138 static fn(array $v):
string => $v[
'rid'],
142 $collection_builder =
$context->fileCollectionBuilder();
143 foreach ($file_identifiers as $file_identifier) {
144 $collection_builder = $collection_builder->withResourceIdentifier(
145 $this->irss->manage()->find($file_identifier),
150 return $collection_builder->collection();
repository()
description: > Example for rendering a repository card
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ getExportOptionId()
ilTestExportOptionXMLRES::getExportOptionId |
( |
| ) |
|
◆ getExportType()
ilTestExportOptionXMLRES::getExportType |
( |
| ) |
|
◆ getFiles()
ilTestExportOptionXMLRES::getFiles |
( |
ilExportHandlerConsumerContextInterface |
$context | ) |
|
Definition at line 105 of file class.ilTestExportOptionXMLRES.php.
References buildElements().
107 : ilExportHandlerFileInfoCollectionInterface {
110 $this->data_factory->objId(
$context->exportObject()->getId())
buildElements(ilExportHandlerConsumerContextInterface $context, ObjectId $object_id, ?array $file_identifiers=null)
◆ getFileSelection()
ilTestExportOptionXMLRES::getFileSelection |
( |
ilExportHandlerConsumerContextInterface |
$context, |
|
|
ilExportHandlerConsumerFileIdentifierCollectionInterface |
$file_identifiers |
|
) |
| |
Definition at line 114 of file class.ilTestExportOptionXMLRES.php.
References buildElements().
117 : ilExportHandlerFileInfoCollectionInterface {
120 $this->data_factory->objId(
$context->exportObject()->getId()),
121 $file_identifiers->toStringArray()
buildElements(ilExportHandlerConsumerContextInterface $context, ObjectId $object_id, ?array $file_identifiers=null)
◆ getLabel()
ilTestExportOptionXMLRES::getLabel |
( |
| ) |
|
◆ getSupportedRepositoryObjectTypes()
ilTestExportOptionXMLRES::getSupportedRepositoryObjectTypes |
( |
| ) |
|
◆ init()
ilTestExportOptionXMLRES::init |
( |
Container |
$DIC | ) |
|
◆ onDeleteFiles()
ilTestExportOptionXMLRES::onDeleteFiles |
( |
ilExportHandlerConsumerContextInterface |
$context, |
|
|
ilExportHandlerConsumerFileIdentifierCollectionInterface |
$file_identifiers |
|
) |
| |
◆ onDownloadFiles()
ilTestExportOptionXMLRES::onDownloadFiles |
( |
ilExportHandlerConsumerContextInterface |
$context, |
|
|
ilExportHandlerConsumerFileIdentifierCollectionInterface |
$file_identifiers |
|
) |
| |
Definition at line 86 of file class.ilTestExportOptionXMLRES.php.
91 foreach ($file_identifiers as $file_identifier) {
92 $this->irss->consume()->download(
93 $this->irss->manage()->find($file_identifier->getIdentifier())
◆ onDownloadWithLink()
ilTestExportOptionXMLRES::onDownloadWithLink |
( |
ReferenceId |
$reference_id, |
|
|
ilExportHandlerConsumerFileIdentifierInterface |
$file_identifier |
|
) |
| |
◆ onExportOptionSelected()
ilTestExportOptionXMLRES::onExportOptionSelected |
( |
ilExportHandlerConsumerContextInterface |
$context | ) |
|
◆ $data_factory
DataFactory ilTestExportOptionXMLRES::$data_factory |
|
private |
◆ $irss
ResourceStorage ilTestExportOptionXMLRES::$irss |
|
private |
◆ $lng
◆ $repository
◆ OPTIONS_ID
const ilTestExportOptionXMLRES::OPTIONS_ID = 'test_exp_option_xmlres' |
The documentation for this class was generated from the following file: