19 declare(strict_types=1);
40 $this->
setId(
'manScorePartTable');
48 $this->
setStyle(
'table',
'fullwidth');
52 $this->
setFormAction($this->
ctrl->getFormAction($parent_obj, self::PARENT_DEFAULT_CMD));
54 $this->
setRowTemplate(
"tpl.il_as_tst_man_scoring_participant_tblrow.html",
"Modules/Test");
64 if ($this->parent_obj->getObject()->getAnonymity()) {
65 $this->
addColumn($this->
lng->txt(
"name"),
'lastname',
'100%');
67 $this->
addColumn($this->
lng->txt(
"lastname"),
'lastname',
'');
68 $this->
addColumn($this->
lng->txt(
"firstname"),
'firstname',
'');
87 $participantStatus =
new ilSelectInputGUI($this->
lng->txt(
'tst_participant_status'),
'participant_status');
89 $statusOptions = array();
94 $participantStatus->setOptions($statusOptions);
98 $participantStatus->readFromSession();
100 if (!$participantStatus->getValue()) {
107 $this->
ctrl->setParameter($this->parent_obj,
'active_id', $a_set[
'active_id']);
109 if (!$this->parent_obj->getObject()->getAnonymity()) {
110 $this->tpl->setCurrentBlock(
'personal');
111 $this->tpl->setVariable(
"PARTICIPANT_FIRSTNAME", $a_set[
'firstname']);
112 $this->tpl->setVariable(
"PARTICIPANT_LOGIN", $a_set[
'login']);
113 $this->tpl->parseCurrentBlock();
116 $this->tpl->setVariable(
"PARTICIPANT_LASTNAME", $a_set[
'lastname']);
118 $this->tpl->setVariable(
"HREF_SCORE_PARTICIPANT", $this->
ctrl->getLinkTarget($this->parent_obj, self::PARENT_EDIT_SCORING_CMD));
119 $this->tpl->setVariable(
"TXT_SCORE_PARTICIPANT", $this->
lng->txt(
'tst_edit_scoring'));
numericOrdering(string $a_field)
Should this field be sorted numeric?
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
const PARENT_EDIT_SCORING_CMD
setResetCommand(string $a_val, string $a_caption="")
setDisableFilterHiding(bool $a_val=true)
const PARENT_RESET_FILTER_CMD
const PARENT_APPLY_FILTER_CMD
setFormName(string $a_name="")
getInternalyOrderedDataValues()
setStyle(string $a_element, string $a_style)
const PART_FILTER_MANSCORING_NONE
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(ilTestScoringGUI $parent_obj)
const PART_FILTER_ALL_USERS
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)
determineOffsetAndOrder(bool $a_omit_offset=false)
const PART_FILTER_MANSCORING_DONE
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
setPrefix(string $a_prefix)