ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTestSkillLevelThresholdsGUI Class Reference
+ Collaboration diagram for ilTestSkillLevelThresholdsGUI:

Public Member Functions

 __construct (ilCtrl $ctrl, ilTemplate $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,
ilTemplate  $tpl,
ilLanguage  $lng,
ilDBInterface  $db,
  $testId 
)

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

References $ctrl, $db, $lng, $testId, and $tpl.

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 246 of file class.ilTestSkillLevelThresholdsGUI.php.

References getTestId().

Referenced by getPopulatedTable().

247  {
248  require_once 'Modules/Test/classes/class.ilTestSkillLevelThresholdList.php';
249  $thresholdList = new ilTestSkillLevelThresholdList($this->db);
250  $thresholdList->setTestId($this->getTestId());
251 
252  return $thresholdList;
253  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildSkillQuestionAssignmentList()

ilTestSkillLevelThresholdsGUI::buildSkillQuestionAssignmentList ( )
private

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

References getQuestionContainerId().

Referenced by getPopulatedTable(), and getTestId().

238  {
239  require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionSkillAssignmentList.php';
240  $assignmentList = new ilAssQuestionSkillAssignmentList($this->db);
241  $assignmentList->setParentObjId($this->getQuestionContainerId());
242 
243  return $assignmentList;
244  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildTableGUI()

ilTestSkillLevelThresholdsGUI::buildTableGUI ( )
private

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

References $table, areQuestionAssignmentColumnsEnabled(), and getTestId().

Referenced by getPopulatedTable().

222  {
223  require_once 'Modules/Test/classes/tables/class.ilTestSkillLevelThresholdsTableGUI.php';
225  $this,
226  $this->getTestId(),
227  self::CMD_SHOW_SKILL_THRESHOLDS,
228  $this->ctrl,
229  $this->lng
230  );
231  $table->setQuestionAssignmentColumnsEnabled($this->areQuestionAssignmentColumnsEnabled());
232  $table->initColumns();
233 
234  return $table;
235  }
if(empty($password)) $table
Definition: pwgen.php:24
+ 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 204 of file class.ilTestSkillLevelThresholdsGUI.php.

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

Referenced by getTestId(), and showSkillThresholdsCmd().

205  {
206  $table = $this->buildTableGUI();
207 
208  $skillLevelThresholdList = $this->buildSkillLevelThresholdList();
209  $skillLevelThresholdList->loadFromDb();
210  $table->setSkillLevelThresholdList($skillLevelThresholdList);
211 
212  $assignmentList = $this->buildSkillQuestionAssignmentList();
213  $assignmentList->loadFromDb();
214 
215  $table->setData($table->completeCompetenceTitles(
216  $assignmentList->getUniqueAssignedSkills()
217  ));
218  return $table;
219  }
if(empty($password)) $table
Definition: pwgen.php:24
+ 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.

References $_POST, $_SERVER, $data, $key, $table, $testId, $valid, buildSkillQuestionAssignmentList(), getPopulatedTable(), ilUtil\sendFailure(), and showSkillThresholdsCmd().

Referenced by buildSkillLevelThresholdList(), and buildTableGUI().

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

◆ setQuestionAssignmentColumnsEnabled()

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

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

References $questionAssignmentColumnsEnabled.

Referenced by ilTestSkillAdministrationGUI\executeCommand().

86  {
87  $this->questionAssignmentColumnsEnabled = $questionAssignmentColumnsEnabled;
88  }
+ Here is the caller graph for this function:

◆ setQuestionContainerId()

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

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

References $questionContainerId.

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

◆ showSkillThresholdsCmd()

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

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

References $table, and getPopulatedTable().

Referenced by getTestId().

193  {
194  if (null === $table) {
195  $table = $this->getPopulatedTable();
196  }
197 
198  $this->tpl->setContent($this->ctrl->getHTML($table));
199  }
+ Here is the call graph for this function:
+ Here is the caller 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: