ILIAS  release_7 Revision v7.30-3-g800a261c036
ilTestSkillLevelThresholdsGUI Class Reference
+ Collaboration diagram for ilTestSkillLevelThresholdsGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilGlobalTemplateInterface $tpl, ilLanguage $lng, ilDBInterface $db, $testId)
 
 getQuestionContainerId ()
 
 setQuestionContainerId ($questionContainerId)
 
 executeCommand ()
 
 setQuestionAssignmentColumnsEnabled ($questionAssignmentColumnsEnabled)
 
 areQuestionAssignmentColumnsEnabled ()
 
 getTestId ()
 

Data Fields

const CMD_SHOW_SKILL_THRESHOLDS = 'showSkillThresholds'
 
const CMD_SAVE_SKILL_THRESHOLDS = 'saveSkillThresholds'
 

Protected Member Functions

 getPopulatedTable ()
 

Private Member Functions

 showSkillThresholdsCmd (ilTestSkillLevelThresholdsTableGUI $table=null)
 
 buildTableGUI ()
 
 buildSkillQuestionAssignmentList ()
 
 buildSkillLevelThresholdList ()
 

Private Attributes

 $ctrl
 
 $tpl
 
 $lng
 
 $db
 
 $testId
 
 $questionContainerId
 
 $questionAssignmentColumnsEnabled
 

Detailed Description

Definition at line 13 of file class.ilTestSkillLevelThresholdsGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestSkillLevelThresholdsGUI::__construct ( ilCtrl  $ctrl,
ilGlobalTemplateInterface  $tpl,
ilLanguage  $lng,
ilDBInterface  $db,
  $testId 
)

Member Function Documentation

◆ areQuestionAssignmentColumnsEnabled()

ilTestSkillLevelThresholdsGUI::areQuestionAssignmentColumnsEnabled ( )
Returns
bool

Definition at line 93 of file class.ilTestSkillLevelThresholdsGUI.php.

References $questionAssignmentColumnsEnabled.

Referenced by buildTableGUI().

+ Here is the caller graph for this function:

◆ buildSkillLevelThresholdList()

ilTestSkillLevelThresholdsGUI::buildSkillLevelThresholdList ( )
private

Definition at line 242 of file class.ilTestSkillLevelThresholdsGUI.php.

243 {
244 require_once 'Modules/Test/classes/class.ilTestSkillLevelThresholdList.php';
245 $thresholdList = new ilTestSkillLevelThresholdList($this->db);
246 $thresholdList->setTestId($this->getTestId());
247
248 return $thresholdList;
249 }

References getTestId().

Referenced by getPopulatedTable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildSkillQuestionAssignmentList()

ilTestSkillLevelThresholdsGUI::buildSkillQuestionAssignmentList ( )
private

Definition at line 233 of file class.ilTestSkillLevelThresholdsGUI.php.

234 {
235 require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillAssignmentList.php';
236 $assignmentList = new ilAssQuestionSkillAssignmentList($this->db);
237 $assignmentList->setParentObjId($this->getQuestionContainerId());
238
239 return $assignmentList;
240 }

References getQuestionContainerId().

Referenced by getPopulatedTable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildTableGUI()

ilTestSkillLevelThresholdsGUI::buildTableGUI ( )
private

Definition at line 217 of file class.ilTestSkillLevelThresholdsGUI.php.

218 {
219 require_once 'Modules/Test/classes/tables/class.ilTestSkillLevelThresholdsTableGUI.php';
221 $this,
222 $this->getTestId(),
223 self::CMD_SHOW_SKILL_THRESHOLDS,
224 $this->ctrl,
225 $this->lng
226 );
227 $table->setQuestionAssignmentColumnsEnabled($this->areQuestionAssignmentColumnsEnabled());
228 $table->initColumns();
229
230 return $table;
231 }

References areQuestionAssignmentColumnsEnabled(), and getTestId().

Referenced by getPopulatedTable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilTestSkillLevelThresholdsGUI::executeCommand ( )

Definition at line 75 of file class.ilTestSkillLevelThresholdsGUI.php.

76 {
77 $cmd = $this->ctrl->getCmd('show') . 'Cmd';
78
79 $this->$cmd();
80 }

◆ getPopulatedTable()

ilTestSkillLevelThresholdsGUI::getPopulatedTable ( )
protected
Returns
ilTestSkillLevelThresholdsTableGUI

Definition at line 200 of file class.ilTestSkillLevelThresholdsGUI.php.

201 {
202 $table = $this->buildTableGUI();
203
204 $skillLevelThresholdList = $this->buildSkillLevelThresholdList();
205 $skillLevelThresholdList->loadFromDb();
206 $table->setSkillLevelThresholdList($skillLevelThresholdList);
207
208 $assignmentList = $this->buildSkillQuestionAssignmentList();
209 $assignmentList->loadFromDb();
210
211 $table->setData($table->completeCompetenceTitles(
212 $assignmentList->getUniqueAssignedSkills()
213 ));
214 return $table;
215 }

References buildSkillLevelThresholdList(), buildSkillQuestionAssignmentList(), and buildTableGUI().

Referenced by showSkillThresholdsCmd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionContainerId()

ilTestSkillLevelThresholdsGUI::getQuestionContainerId ( )
Returns
int

Definition at line 62 of file class.ilTestSkillLevelThresholdsGUI.php.

References $questionContainerId.

Referenced by buildSkillQuestionAssignmentList().

+ Here is the caller graph for this function:

◆ getTestId()

ilTestSkillLevelThresholdsGUI::getTestId ( )
Returns
int

Definition at line 101 of file class.ilTestSkillLevelThresholdsGUI.php.

102 {
103 return $this->testId;
104 }

References $testId.

Referenced by buildSkillLevelThresholdList(), and buildTableGUI().

+ Here is the caller graph for this function:

◆ setQuestionAssignmentColumnsEnabled()

ilTestSkillLevelThresholdsGUI::setQuestionAssignmentColumnsEnabled (   $questionAssignmentColumnsEnabled)
Parameters
boolean$questionAssignmentColumnsEnabled

Definition at line 85 of file class.ilTestSkillLevelThresholdsGUI.php.

86 {
87 $this->questionAssignmentColumnsEnabled = $questionAssignmentColumnsEnabled;
88 }

References $questionAssignmentColumnsEnabled.

◆ setQuestionContainerId()

ilTestSkillLevelThresholdsGUI::setQuestionContainerId (   $questionContainerId)
Parameters
int$questionContainerId

Definition at line 70 of file class.ilTestSkillLevelThresholdsGUI.php.

71 {
72 $this->questionContainerId = $questionContainerId;
73 }

References $questionContainerId.

◆ showSkillThresholdsCmd()

ilTestSkillLevelThresholdsGUI::showSkillThresholdsCmd ( ilTestSkillLevelThresholdsTableGUI  $table = null)
private
Parameters
ilTestSkillLevelThresholdsTableGUI | null$table

Definition at line 188 of file class.ilTestSkillLevelThresholdsGUI.php.

189 {
190 if (null === $table) {
191 $table = $this->getPopulatedTable();
192 }
193
194 $this->tpl->setContent($this->ctrl->getHTML($table));
195 }

References getPopulatedTable().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilTestSkillLevelThresholdsGUI::$ctrl
private

Definition at line 20 of file class.ilTestSkillLevelThresholdsGUI.php.

Referenced by __construct().

◆ $db

ilTestSkillLevelThresholdsGUI::$db
private

Definition at line 35 of file class.ilTestSkillLevelThresholdsGUI.php.

Referenced by __construct().

◆ $lng

ilTestSkillLevelThresholdsGUI::$lng
private

Definition at line 30 of file class.ilTestSkillLevelThresholdsGUI.php.

Referenced by __construct().

◆ $questionAssignmentColumnsEnabled

ilTestSkillLevelThresholdsGUI::$questionAssignmentColumnsEnabled
private

◆ $questionContainerId

ilTestSkillLevelThresholdsGUI::$questionContainerId
private

◆ $testId

ilTestSkillLevelThresholdsGUI::$testId
private

Definition at line 40 of file class.ilTestSkillLevelThresholdsGUI.php.

Referenced by __construct(), and getTestId().

◆ $tpl

ilTestSkillLevelThresholdsGUI::$tpl
private

Definition at line 25 of file class.ilTestSkillLevelThresholdsGUI.php.

Referenced by __construct().

◆ CMD_SAVE_SKILL_THRESHOLDS

const ilTestSkillLevelThresholdsGUI::CMD_SAVE_SKILL_THRESHOLDS = 'saveSkillThresholds'

◆ CMD_SHOW_SKILL_THRESHOLDS

const ilTestSkillLevelThresholdsGUI::CMD_SHOW_SKILL_THRESHOLDS = 'showSkillThresholds'

The documentation for this class was generated from the following file: