19 declare(strict_types=1);
43 protected array $anon_only_user_ids
46 $this->
setId(
'manScorePartTable');
54 $this->
setStyle(
'table',
'fullwidth');
58 $this->
setFormAction($this->
ctrl->getFormAction($parent_obj, self::PARENT_DEFAULT_CMD));
60 $this->
setRowTemplate(
"tpl.il_as_tst_man_scoring_participant_tblrow.html",
"components/ILIAS/Test");
70 $this->
addColumn($this->
lng->txt(
"exam_id_label"),
'examid',
'');
72 if (!$this->parent_obj->getObject()->getAnonymity()
73 && $this->parent_obj->getTestAccess()->checkScoreParticipantsAccess()
75 $this->has_name_columns =
true;
76 $this->
addColumn($this->
lng->txt(
"lastname"),
'lastname',
'');
77 $this->
addColumn($this->
lng->txt(
"firstname"),
'firstname',
'');
96 $participantStatus = new \ilSelectInputGUI($this->
lng->txt(
'tst_participant_status'),
'participant_status');
103 $participantStatus->setOptions($statusOptions);
107 $participantStatus->readFromSession();
109 if (!$participantStatus->getValue()) {
116 $this->
ctrl->setParameter($this->parent_obj,
'active_id', $a_set[
'active_id']);
122 $this->tpl->setVariable(
"PARTICIPANT_EXAMID", $participant_examid);
124 if (in_array($a_set[
'usr_id'], $this->anon_only_user_ids)) {
125 $a_set[
'lastname'] =
'';
126 $a_set[
'firstname'] =
'';
127 $a_set[
'login'] =
'';
129 if ($this->has_name_columns) {
130 $this->tpl->setCurrentBlock(
'personal');
131 $this->tpl->setVariable(
"PARTICIPANT_LASTNAME", $a_set[
'lastname']);
132 $this->tpl->setVariable(
"PARTICIPANT_FIRSTNAME", $a_set[
'firstname']);
133 $this->tpl->setVariable(
"PARTICIPANT_LOGIN", $a_set[
'login']);
134 $this->tpl->parseCurrentBlock();
138 $this->tpl->setVariable(
"HREF_SCORE_PARTICIPANT", $this->
ctrl->getLinkTarget($this->parent_obj, self::PARENT_EDIT_SCORING_CMD));
139 $this->tpl->setVariable(
"TXT_SCORE_PARTICIPANT", $this->
lng->txt(
'tst_edit_scoring'));
146 return \ilArrayUtil::sortArray(
const PART_FILTER_MANSCORING_NONE
numericOrdering(string $a_field)
Should this field be sorted numeric?
const PART_FILTER_MANSCORING_DONE
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
getInternalyOrderedDataValues()
setResetCommand(string $a_val, string $a_caption="")
setDisableFilterHiding(bool $a_val=true)
const PARENT_APPLY_FILTER_CMD
setFormName(string $a_name="")
const PARENT_EDIT_SCORING_CMD
__construct(TestScoringByParticipantGUI $parent_obj, protected array $anon_only_user_ids)
setStyle(string $a_element, string $a_style)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setFilterCommand(string $a_val, string $a_caption="")
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
const PART_FILTER_ALL_USERS
const PARENT_RESET_FILTER_CMD
determineOffsetAndOrder(bool $a_omit_offset=false)
setPrefix(string $a_prefix)