19 declare(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;
52 public function withId(
int $id): self
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) {
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),
122 return $ui_factory->legacy()->content($this->error_message);
140 if ($user_id ===
null) {
143 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)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__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)