19declare(strict_types=1);
36 private readonly
int $test_ref_id,
37 private readonly ?
int $question_id,
38 private readonly ?
int $admin_id,
39 private readonly ?
int $pax_id,
41 private readonly
int $modification_timestamp,
42 private readonly
string $error_message
49 return self::IDENTIFIER .
'_' .
$this->id;
69 'date_and_time' => \DateTimeImmutable::createFromFormat(
'U', (
string) $this->modification_timestamp)
70 ->setTimezone($environment[
'timezone']),
75 'participant' => $pax,
76 'log_entry_type' =>
$lng->txt(self::LANG_VAR_PREFIX . self::IDENTIFIER),
77 'interaction_type' =>
$lng->txt(self::LANG_VAR_PREFIX . $this->interaction_type->value)
80 if ($this->question_id !==
null) {
99 $admin = $this->getUserForPresentation($this->admin_id);
100 $pax = $this->getUserForPresentation($this->pax_id);
103 \DateTimeImmutable::createFromFormat(
'U', (
string) $this->modification_timestamp)
104 ->setTimezone($environment[
'timezone'])
105 ->format($environment[
'date_format']),
111 $lng->txt(self::LANG_VAR_PREFIX . self::IDENTIFIER),
112 $lng->txt(self::LANG_VAR_PREFIX . $this->interaction_type->value),
119 UIFactory $ui_factory,
122 return $ui_factory->
legacy()->content($this->error_message);
143 return \ilUserUtil::getNamePresentation(
Builds a Color from either hex- or rgb values.
getUserForPresentation(?int $user_id)
getLogEntryAsDataTableRow(\ilLanguage $lng, TitleColumnsBuilder $title_builder, DataRowBuilder $row_builder, array $environment)
getLogEntryAsExportRow(\ilLanguage $lng, TitleColumnsBuilder $title_builder, AdditionalInformationGenerator $additional_info, array $environment)
__construct(private readonly int $test_ref_id, private readonly ?int $question_id, private readonly ?int $admin_id, private readonly ?int $pax_id, private readonly TestErrorTypes $interaction_type, private readonly int $modification_timestamp, private readonly string $error_message)
getParsedAdditionalInformation(AdditionalInformationGenerator $additional_info, UIFactory $ui_factory, array $environment)
buildTestTitleAsText(int $test_ref_id)
buildTestTitleAsLink(int $test_ref_id)
buildQuestionTitleAsLink(int $question_id, int $test_ref_id)
buildQuestionTitleAsText(?int $question_id)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
buildDataRow(string $id, array $record)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...