19declare(strict_types=1);
37 private readonly
int $question_id,
40 if ($question_id !== $question_properties->getQuestionId()) {
43 'The question ids do not match. Id local: %s. Id properties: %s.',
45 $question_properties->getQuestionId()
55 return $this->question_id;
60 return $this->question_properties;
89 UIFactory $ui_factory,
91 \Closure $question_target_link_builder,
95 return $row_builder->buildOrderingRow(
96 (string) $this->question_id,
98 'question_id' => $this->question_id,
101 $this->question_properties->
getTitle()
103 $question_target_link_builder($this->question_id)
105 'description' => $this->question_properties->getDescription(),
106 'type_tag' => $this->question_properties->getTypeName(
$lng),
107 'points' => $this->question_properties->getAvailablePoints(),
108 'author' => $this->question_properties->getAuthor(),
109 'complete' => $this->question_properties->isRequiredInformationComplete(),
111 'qpl' => $title_builder->buildAccessCheckedQuestionpoolTitleAsLink($this->question_properties->getOriginObjectId()),
114 'percentage_points_achieved' =>
"{$this->getAggregatedResults()->getPercentageOfPointsAchieved()}%"
Builds a Color from either hex- or rgb values.
__construct(private readonly int $question_id, private readonly GeneralQuestionProperties $question_properties,)
PropertyAggregatedResults $aggregated_results
PropertySequence $sequence
withSequenceInformation(PropertySequence $sequence)
getGeneralQuestionProperties()
getAsQuestionsTableRow(Language $lng, UIFactory $ui_factory, Refinery $refinery, \Closure $question_target_link_builder, OrderingRowBuilder $row_builder, TitleColumnsBuilder $title_builder)
withAggregatedResults(PropertyAggregatedResults $aggregated_results)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
link(string $caption, string $href, bool $new_viewport=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...