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() )
68 case strtolower(__CLASS__):
71 $command = $this->myCtrl->getCmd(self::CMD_SHOW).
'Cmd';
90 $this->myTpl->setContent($this->myCtrl->getHTML($this));
95 $this->
addColumn($this->myLng->txt(
'qpl_qst_skl_usg_skill_col'),
'skill_title',
'50%');
96 $this->
addColumn($this->myLng->txt(
'qpl_qst_skl_usg_numq_col'),
'num_questions',
'');
97 $this->
addColumn($this->myLng->txt(
'qpl_qst_skl_usg_sklpnt_col'),
'max_skill_points',
'');
102 $this->tpl->setVariable(
'SKILL_TITLE',
$data[
'skill_title']);
103 $this->tpl->setVariable(
'SKILL_PATH',
$data[
'skill_path']);
104 $this->tpl->setVariable(
'NUM_QUESTIONS',
$data[
'num_questions']);
105 $this->tpl->setVariable(
'MAX_SKILL_POINTS',
$data[
'max_skill_points']);
112 case 'num_questions':
113 case 'max_skill_points':
122 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillAssignmentList.php';
125 $assignmentList->setParentObjId($this->poolId);
126 $assignmentList->loadFromDb();
127 $assignmentList->loadAdditionalSkillData();
129 return $assignmentList->getUniqueAssignedSkills();
136 foreach($assignedSkills as $assignedSkill)
139 'skill_title' => $assignedSkill[
'skill_title'],
140 'skill_path' => $assignedSkill[
'skill_path'],
141 'num_questions' => $assignedSkill[
'num_assigns'],
142 '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.
Create styles array
The data for the language used.
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)