19 declare(strict_types=1);
41 private int $test_ref_id,
42 private int $question_id,
43 private int $admin_id,
45 private int $modification_timestamp,
46 private array $additional_data
53 return self::IDENTIFIER .
'_' .
$this->id;
56 public function withId(
int $id): self
70 'date_and_time' => \DateTimeImmutable::createFromFormat(
'U', (
string) $this->modification_timestamp)
71 ->setTimezone($environment[
'timezone']),
82 'log_entry_type' => $lng->
txt(self::LANG_VAR_PREFIX . self::IDENTIFIER),
83 'interaction_type' => $lng->
txt(self::LANG_VAR_PREFIX . $this->interaction_type->value)
86 if ($this->question_id !==
null) {
95 )->withDisabledAction(
97 $this->additional_data === []
108 \DateTimeImmutable::createFromFormat(
'U', (
string) $this->modification_timestamp)
109 ->setTimezone($environment[
'timezone'])
110 ->format($environment[
'date_format']),
122 $lng->
txt(self::LANG_VAR_PREFIX . self::IDENTIFIER),
123 $lng->
txt(self::LANG_VAR_PREFIX . $this->interaction_type->value),
124 $additional_info->
parseForExport($this->additional_data, $environment)
133 return $additional_info->
parseForTable($this->additional_data, $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...
getLogEntryAsExportRow(\ilLanguage $lng, TitleColumnsBuilder $title_builder, AdditionalInformationGenerator $additional_info, array $environment)
buildDataRow(string $id, array $record)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getParsedAdditionalInformation(AdditionalInformationGenerator $additional_info, UIFactory $ui_factory, array $environment)
TestQuestionAdministrationInteractionTypes
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is:
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)
__construct(private int $test_ref_id, private int $question_id, private int $admin_id, private TestQuestionAdministrationInteractionTypes $interaction_type, private int $modification_timestamp, private array $additional_data)
buildTestTitleAsText(int $test_ref_id)
const ACTION_ID_SHOW_ADDITIONAL_INFO
buildTestTitleAsLink(int $test_ref_id)
getLogEntryAsDataTableRow(\ilLanguage $lng, TitleColumnsBuilder $title_builder, DataRowBuilder $row_builder, array $environment)