4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
52 $this->poolId = $poolId;
54 $this->
setId(self::TABLE_ID . $this->poolId);
55 $this->
setPrefix(self::TABLE_ID . $this->poolId);
56 parent::__construct($this, self::CMD_SHOW);
58 $this->
setRowTemplate(
"tpl.il_as_qpl_skl_assign_stat_row.html",
"Modules/TestQuestionPool");#
66 switch ($this->myCtrl->getNextClass()) {
67 case strtolower(__CLASS__):
70 $command = $this->myCtrl->getCmd(self::CMD_SHOW) .
'Cmd';
89 $this->myTpl->setContent($this->myCtrl->getHTML($this));
94 $this->
addColumn($this->myLng->txt(
'qpl_qst_skl_usg_skill_col'),
'skill_title',
'50%');
95 $this->
addColumn($this->myLng->txt(
'qpl_qst_skl_usg_numq_col'),
'num_questions',
'');
96 $this->
addColumn($this->myLng->txt(
'qpl_qst_skl_usg_sklpnt_col'),
'max_skill_points',
'');
101 $this->tpl->setVariable(
'SKILL_TITLE',
$data[
'skill_title']);
102 $this->tpl->setVariable(
'SKILL_PATH',
$data[
'skill_path']);
103 $this->tpl->setVariable(
'NUM_QUESTIONS',
$data[
'num_questions']);
104 $this->tpl->setVariable(
'MAX_SKILL_POINTS',
$data[
'max_skill_points']);
110 case 'num_questions':
111 case 'max_skill_points':
120 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillAssignmentList.php';
123 $assignmentList->setParentObjId($this->poolId);
124 $assignmentList->loadFromDb();
125 $assignmentList->loadAdditionalSkillData();
127 return $assignmentList->getUniqueAssignedSkills();
134 foreach ($assignedSkills as $assignedSkill) {
136 'skill_title' => $assignedSkill[
'skill_title'],
137 'skill_path' => $assignedSkill[
'skill_path'],
138 'num_questions' => $assignedSkill[
'num_assigns'],
139 'max_skill_points' => $assignedSkill[
'max_points'],
This class provides processing control methods.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
getUniqueAssignedSkillsStats()
special template class to simplify handling of ITX/PEAR
buildTableRowsArray($assignedSkills)
numericOrdering($a_field)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
__construct(ilCtrl $myCtrl, ilTemplate $myTpl, ilLanguage $myLng, ilDBInterface $myDb, $poolId)