ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestSkillLevelThresholdsGUI Class Reference
+ Collaboration diagram for ilTestSkillLevelThresholdsGUI:

Public Member Functions

 __construct (private readonly ilCtrlInterface $ctrl, private readonly ilGlobalTemplateInterface $tpl, private readonly ilLanguage $lng, private readonly ilDBInterface $db, private readonly RequestDataCollector $request_data_collector, private readonly int $test_id)
 
 getQuestionContainerId ()
 
 setQuestionContainerId (int $question_container_id)
 
 executeCommand ()
 
 setQuestionAssignmentColumnsEnabled (bool $question_assignment_columns_enabled)
 
 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

int $question_container_id
 
bool $question_assignment_columns_enabled = false
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestSkillLevelThresholdsGUI::__construct ( private readonly ilCtrlInterface  $ctrl,
private readonly ilGlobalTemplateInterface  $tpl,
private readonly ilLanguage  $lng,
private readonly ilDBInterface  $db,
private readonly RequestDataCollector  $request_data_collector,
private readonly int  $test_id 
)

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

46  {
47  }

Member Function Documentation

◆ areQuestionAssignmentColumnsEnabled()

ilTestSkillLevelThresholdsGUI::areQuestionAssignmentColumnsEnabled ( )
Returns
bool

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

References $question_assignment_columns_enabled.

Referenced by buildTableGUI().

+ Here is the caller graph for this function:

◆ buildSkillLevelThresholdList()

ilTestSkillLevelThresholdsGUI::buildSkillLevelThresholdList ( )
private

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

References getTestId().

Referenced by getPopulatedTable().

224  {
225  $threshold_list = new ilTestSkillLevelThresholdList($this->db);
226  $threshold_list->setTestId($this->getTestId());
227 
228  return $threshold_list;
229  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildSkillQuestionAssignmentList()

ilTestSkillLevelThresholdsGUI::buildSkillQuestionAssignmentList ( )
private

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

References getQuestionContainerId().

Referenced by getPopulatedTable(), and getTestId().

216  {
217  $assignment_list = new ilAssQuestionSkillAssignmentList($this->db);
218  $assignment_list->setParentObjId($this->getQuestionContainerId());
219 
220  return $assignment_list;
221  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildTableGUI()

ilTestSkillLevelThresholdsGUI::buildTableGUI ( )
private

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

References areQuestionAssignmentColumnsEnabled(), ILIAS\Repository\ctrl(), getTestId(), and ILIAS\Repository\lng().

Referenced by getPopulatedTable().

201  {
203  $this,
204  $this->getTestId(),
205  self::CMD_SHOW_SKILL_THRESHOLDS,
206  $this->ctrl,
207  $this->lng
208  );
209  $table->setQuestionAssignmentColumnsEnabled($this->areQuestionAssignmentColumnsEnabled());
210  $table->initColumns();
211 
212  return $table;
213  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ executeCommand()

ilTestSkillLevelThresholdsGUI::executeCommand ( )

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

References ILIAS\Repository\ctrl().

62  : void
63  {
64  $cmd = $this->ctrl->getCmd('show') . 'Cmd';
65 
66  $this->$cmd();
67  }
+ Here is the call graph for this function:

◆ getPopulatedTable()

ilTestSkillLevelThresholdsGUI::getPopulatedTable ( )
protected

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

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

Referenced by getTestId(), and showSkillThresholdsCmd().

184  {
185  $table = $this->buildTableGUI();
186 
187  $skill_level_threshold_list = $this->buildSkillLevelThresholdList();
188  $skill_level_threshold_list->loadFromDb();
189  $table->setSkillLevelThresholdList($skill_level_threshold_list);
190 
191  $assignment_list = $this->buildSkillQuestionAssignmentList();
192  $assignment_list->loadFromDb();
193 
194  $table->setData($table->completeCompetenceTitles(
195  $assignment_list->getUniqueAssignedSkills()
196  ));
197  return $table;
198  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionContainerId()

ilTestSkillLevelThresholdsGUI::getQuestionContainerId ( )
Returns
int

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

References $question_container_id.

Referenced by buildSkillQuestionAssignmentList().

+ Here is the caller graph for this function:

◆ getTestId()

ilTestSkillLevelThresholdsGUI::getTestId ( )
Returns
int

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

References $data, $valid, buildSkillQuestionAssignmentList(), ILIAS\Repository\ctrl(), getPopulatedTable(), ILIAS\Repository\lng(), null, showSkillThresholdsCmd(), and ILIAS\UI\examples\Symbol\Glyph\Sort\sort().

Referenced by buildSkillLevelThresholdList(), and buildTableGUI().

85  : int
86  {
87  return $this->test_id;
88  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setQuestionAssignmentColumnsEnabled()

ilTestSkillLevelThresholdsGUI::setQuestionAssignmentColumnsEnabled ( bool  $question_assignment_columns_enabled)

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

References $question_assignment_columns_enabled.

Referenced by ilTestSkillAdministrationGUI\executeCommand().

69  : void
70  {
71  $this->question_assignment_columns_enabled = $question_assignment_columns_enabled;
72  }
+ Here is the caller graph for this function:

◆ setQuestionContainerId()

ilTestSkillLevelThresholdsGUI::setQuestionContainerId ( int  $question_container_id)

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

References $question_container_id.

57  : void
58  {
59  $this->question_container_id = $question_container_id;
60  }

◆ showSkillThresholdsCmd()

ilTestSkillLevelThresholdsGUI::showSkillThresholdsCmd ( ?ilTestSkillLevelThresholdsTableGUI  $table = null)
private

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

References ILIAS\Repository\ctrl(), getPopulatedTable(), and null.

Referenced by getTestId().

174  : void
175  {
176  if (null === $table) {
177  $table = $this->getPopulatedTable();
178  }
179 
180  $this->tpl->setContent($this->ctrl->getHTML($table));
181  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $question_assignment_columns_enabled

bool ilTestSkillLevelThresholdsGUI::$question_assignment_columns_enabled = false
private

◆ $question_container_id

int ilTestSkillLevelThresholdsGUI::$question_container_id
private

◆ 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: