19 declare(strict_types=1);
37 private readonly
int $test_ref_id,
38 private readonly ?
int $question_id,
39 private readonly ?
int $admin_id,
40 private readonly ?
int $pax_id,
42 private readonly
int $modification_timestamp,
43 private readonly
string $error_message
50 return self::IDENTIFIER .
'_' .
$this->id;
53 public function withId(
int $id): self
70 'date_and_time' => \DateTimeImmutable::createFromFormat(
'U', (
string) $this->modification_timestamp)
71 ->setTimezone($environment[
'timezone']),
76 'participant' => $pax,
77 'log_entry_type' => $lng->
txt(self::LANG_VAR_PREFIX . self::IDENTIFIER),
78 'interaction_type' => $lng->
txt(self::LANG_VAR_PREFIX . $this->interaction_type->value)
81 if ($this->question_id !== null) {
104 \DateTimeImmutable::createFromFormat(
'U', (
string) $this->modification_timestamp)
105 ->setTimezone($environment[
'timezone'])
106 ->format($environment[
'date_format']),
112 $lng->
txt(self::LANG_VAR_PREFIX . self::IDENTIFIER),
113 $lng->
txt(self::LANG_VAR_PREFIX . $this->interaction_type->value),
123 return $ui_factory->legacy($this->error_message);
141 if ($user_id === null) {
144 return \ilUserUtil::getNamePresentation(
getLogEntryAsDataTableRow(\ilLanguage $lng, TitleColumnsBuilder $title_builder, DataRowBuilder $row_builder, array $environment)
buildQuestionTitleAsText(?int $question_id)
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...
getUserForPresentation(?int $user_id)
buildDataRow(string $id, array $record)
__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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
buildQuestionTitleAsLink(int $question_id, int $test_ref_id)
buildTestTitleAsText(int $test_ref_id)
getLogEntryAsExportRow(\ilLanguage $lng, TitleColumnsBuilder $title_builder, AdditionalInformationGenerator $additional_info, array $environment)
getParsedAdditionalInformation(AdditionalInformationGenerator $additional_info, UIFactory $ui_factory, array $environment)
buildTestTitleAsLink(int $test_ref_id)