19declare(strict_types=1);
85 return !empty($this->file);
120 $clone = clone $this;
121 $clone->finalized = $finalize;
127 $clone = clone $this;
128 $clone->file =
$file;
134 DataFactory $data_factory,
139 array $grading_options,
140 bool $may_be_edited =
true,
141 bool $place_required =
false,
145 ->text(
$lng->txt(
'name'),
'')
151 ->textarea(
$lng->txt(
'iass_record'),
$lng->txt(
'iass_record_info'))
153 ->withDisabled(!$may_be_edited)
157 ->textarea(
$lng->txt(
'iass_internal_note'),
$lng->txt(
'iass_internal_note_info'))
159 ->withDisabled(!$may_be_edited)
163 ->file($file_handler,
$lng->txt(
'iass_upload_file'),
$lng->txt(
'iass_file_dropzone'))
167 $file_visible = $input
168 ->checkbox(
$lng->txt(
'iass_file_visible_examinee'))
170 ->withDisabled(!$may_be_edited)
174 ->select(
$lng->txt(
'grading'), $grading_options)
176 ->withDisabled(!$may_be_edited)
181 ->text(
$lng->txt(
'iass_place'))
183 ->withRequired($place_required)
184 ->withDisabled(!$may_be_edited)
188 ->dateTime(
$lng->txt(
'iass_event_time'))
190 ->withFormat($date_format)
191 ->withRequired($place_required)
192 ->withDisabled(!$may_be_edited)
197 $this->
getEventTime()->format($date_format->toString() .
' HH:mm')
202 ->checkbox(
$lng->txt(
'iass_notify'),
$lng->txt(
'iass_notify_explanation'))
204 ->withDisabled(!$may_be_edited)
212 'file_visible' => $file_visible,
221 ->checkbox(
$lng->txt(
'iass_finalize'),
$lng->txt(
'iass_finalize_info'))
223 ->withDisabled(!$may_be_edited)
229 return $input->section(
231 $lng->txt(
'iass_edit_record')
232 )->withAdditionalTransformation(
241 isset($values[
'file'][0]) &&
242 trim($values[
'file'][0]) !=
''
244 $file = $values[
'file'][0];
250 $values[
'internal_note'],
252 $values[
'file_visible'],
253 (
int) $values[
'learning_progress'],
255 $values[
'event_time'],
static return function(ContainerConfigurator $containerConfigurator)
Class ilCtrlAwareUploadHandler.
withFinalized(bool $finalize)
toFormInput(Field\Factory $input, DataFactory $data_factory, ilLanguage $lng, Refinery $refinery, AbstractCtrlAwareUploadHandler $file_handler, \ILIAS\Data\DateFormat\DateFormat $date_format, array $grading_options, bool $may_be_edited=true, bool $place_required=false, bool $amend=false)
__construct(string $name, string $record, string $internal_note, ?string $file, bool $is_file_visible, int $learning_progress, string $place, ?DateTimeImmutable $event_time, bool $notify, bool $finalized=false)
DateTimeImmutable $event_time
Refinery Factory $refinery
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.