19declare(strict_types=1);
33 public const string ID =
'ska';
38 private readonly UIFactory $ui_factory,
51 $this->ui_factory->table()->data(
53 sprintf($this->
lng->txt(
'qpl_skl_assignment_for_question'), $question->getTitle()),
57 $this->table_actions->getEnabledActions(...$this->acquireParameters($url_builder))
59 ->withRequest($this->pool_request->getRequest())
65 array $visible_column_ids,
68 mixed $additional_viewcontrol_data,
70 mixed $additional_parameters
74 yield $this->table_actions->setAvailabilityOnDataRow(
76 "{$record->getQuestionId()}_{$record->getSkillBaseId()}_{$record->getSkillTrefId()}",
78 'competence' => htmlspecialchars($record->getSkillTitle(), ENT_QUOTES,
'UTF-8',
false),
79 'competence_tree' => $record->getSkillPath(),
80 'eval_mode' => $this->lng->txt($record->hasEvalModeBySolution()
81 ?
'qpl_skill_point_eval_mode_solution_compare'
82 :
'qpl_skill_point_eval_mode_quest_result'),
83 'points' => $record->getSkillPoints(),
92 mixed $additional_viewcontrol_data,
94 mixed $additional_parameters
97 $this->assignment_list->getAssignmentsByQuestionId(
98 $this->pool_request->getQuestionId()
107 EditSkillsOfQuestionTableActions::ROW_ID_PARAMETER,
108 EditSkillsOfQuestionTableActions::ACTION_PARAMETER,
109 EditSkillsOfQuestionTableActions::ACTION_TYPE_PARAMETER
115 return $this->assignment_list->getAssignmentsByQuestionId($this->pool_request->getQuestionId());
120 $column = $this->ui_factory->table()->column();
122 'competence' => $column->text($this->
lng->txt(
'tst_competence'))->withIsSortable(
true),
123 'competence_tree' => $column->text($this->
lng->txt(
'tst_competence_tree'))->withIsSortable(
true),
124 'eval_mode' => $column->text($this->
lng->txt(
'tst_comp_eval_mode'))->withIsSortable(
true),
125 'points' => $column->number($this->
lng->txt(
'tst_comp_points'))->withIsSortable(
true)
Builds a Color from either hex- or rgb values.
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
__construct(private readonly RequestDataCollectorInterface $pool_request, private readonly \ilAssQuestionSkillAssignmentList $assignment_list, private readonly UIFactory $ui_factory, private readonly \ilLanguage $lng, private readonly EditSkillsOfQuestionTableActions $table_actions)
getComponents(URLBuilder $url_builder)
acquireParameters(URLBuilder $url_builder)
getTotalRowCount(mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
Mainly for the purpose of pagination-support, it is important to know about the total number of recor...
acquireParameters(array $namespace, string ... $names)
static instantiateQuestion(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...
getRows(DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e....
buildDataRow(string $id, array $record)