20 private bool $write_access
24 $this->
language->loadLanguageModule(
"bgtask");
25 $this->field_factory =
$DIC->ui()->factory()->input()->field();
31 return $this->field_factory->section(
39 $download_limit = $this->field_factory
41 $this->
language->txt(
'bgtask_setting_limit'),
42 $this->language->txt(
'bgtask_setting_limit_info')
46 ->withDisabled(!$this->write_access)
47 ->withAdditionalTransformation(
48 $this->
refinery->custom()->transformation(function (
int $value):
int {
49 $this->
settings->setDownloadLimitInMB($value);
54 $inline_file_extensions = $this->field_factory
56 $this->
language->txt(
'inline_file_extensions'),
58 $this->language->txt(
'inline_file_extensions_info')
60 ->withValue($this->
settings->getInlineFileExtensions())
61 ->withDisabled(!$this->write_access)
62 ->withAdditionalTransformation(
63 $this->
refinery->custom()->transformation(function (array $value): array {
64 $this->
settings->setInlineFileExtensions($value);
69 $show_amount_of_downloads = $this->field_factory
71 $this->
language->txt(
'show_amount_of_downloads'),
72 $this->language->txt(
'show_amount_of_downloads_info')
74 ->withValue($this->
settings->isShowAmountOfDownloads())
75 ->withDisabled(!$this->write_access)
76 ->withAdditionalTransformation(
77 $this->
refinery->custom()->transformation(
78 function (
bool $value):
bool {
79 $this->
settings->setShowAmountOfDownloads($value);
85 $ascii_filename = $this->field_factory
87 $this->
language->txt(
'download_ascii_filename'),
88 $this->language->txt(
'download_ascii_filename_info')
90 ->withValue($this->
settings->isDownloadWithAsciiFileName())
91 ->withDisabled(!$this->write_access)
92 ->withAdditionalTransformation(
93 $this->
refinery->custom()->transformation(function (
bool $value):
bool {
94 $this->
settings->setDownloadWithAsciiFileName($value);
99 return $this->field_factory->group(
103 $inline_file_extensions,
104 $show_amount_of_downloads,
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...