19 declare(strict_types=1);
    42         string $internal_note,
    44         bool $is_file_visible,
    45         int $learning_progress,
    49         bool $finalized = 
false    85         return !empty($this->file);
   120         $clone = clone $this;
   121         $clone->finalized = $finalize;
   127         $clone = clone $this;
   128         $clone->file = 
$file;
   139         array $grading_options,
   140         bool $may_be_edited = 
true,
   141         bool $place_required = 
false,
   142         bool $file_required = 
false,
   146             ->text($lng->
txt(
'name'), 
'')
   152             ->textarea($lng->
txt(
'iass_record'), $lng->
txt(
'iass_record_info'))
   154             ->withDisabled(!$may_be_edited)
   157         $internal_note = $input
   158             ->textarea($lng->
txt(
'iass_internal_note'), $lng->
txt(
'iass_internal_note_info'))
   160             ->withDisabled(!$may_be_edited)
   164             ->file($file_handler, $lng->
txt(
'iass_upload_file'), $lng->
txt(
'iass_file_dropzone'))
   166             ->withRequired($file_required)
   169         $file_visible = $input
   170             ->checkbox($lng->
txt(
'iass_file_visible_examinee'))
   172             ->withDisabled(!$may_be_edited)
   175         $learning_progress = $input
   176             ->select($lng->
txt(
'grading'), $grading_options)
   178             ->withDisabled(!$may_be_edited)
   183             ->text($lng->
txt(
'iass_place'))
   185             ->withRequired($place_required)
   186             ->withDisabled(!$may_be_edited)
   190             ->dateTime($lng->
txt(
'iass_event_time'))
   192             ->withFormat($date_format)
   193             ->withRequired($place_required)
   194             ->withDisabled(!$may_be_edited)
   198             $event_time = $event_time->withValue(
   204             ->checkbox($lng->
txt(
'iass_notify'), $lng->
txt(
'iass_notify_explanation'))
   206             ->withDisabled(!$may_be_edited)
   214             'file_visible' => $file_visible,
   223                 ->checkbox($lng->
txt(
'iass_finalize'), $lng->
txt(
'iass_finalize_info'))
   225                 ->withDisabled(!$may_be_edited)
   231         return $input->section(
   233             $lng->
txt(
'iass_edit_record')
   235             $refinery->custom()->transformation(
function ($values) use ($amend) {
   238                     $finalized = $values[
'finalized'];
   243                     isset($values[
'file'][0]) &&
   244                     trim($values[
'file'][0]) != 
''   246                     $file = $values[
'file'][0];
   252                     $values[
'internal_note'],
   254                     $values[
'file_visible'],
   255                     (
int) $values[
'learning_progress'],
   257                     $values[
'event_time'],
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
Class ChatMainBarProvider . 
 
DateTimeImmutable $event_time
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ilCtrlAwareUploadHandler. 
 
__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)
 
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 $file_required=false, bool $amend=false)
 
withFinalized(bool $finalize)
 
Refinery Factory $refinery