ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestSkillLevelThresholdImportList Class Reference
+ Inheritance diagram for ilTestSkillLevelThresholdImportList:
+ Collaboration diagram for ilTestSkillLevelThresholdImportList:

Public Member Functions

 addOriginalSkillTitle ($skillBaseId, $skillTrefId, $originalSkillTitle)
 
 addOriginalSkillPath ($skillBaseId, $skillTrefId, $originalSkillPath)
 
 addSkillLevelThreshold (ilTestSkillLevelThresholdImport $importedSkillLevelThreshold)
 
 getThresholdsByImportSkill ($importSkillBaseId, $importSkillTrefId)
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 

Protected Attributes

 $originalSkillTitles = []
 
 $originalSkillPaths = []
 
 $importedSkillLevelThresholds = []
 

Detailed Description

Member Function Documentation

◆ addOriginalSkillPath()

ilTestSkillLevelThresholdImportList::addOriginalSkillPath (   $skillBaseId,
  $skillTrefId,
  $originalSkillPath 
)

Definition at line 38 of file class.ilTestSkillLevelThresholdImportList.php.

39  {
40  $this->originalSkillPaths["{$skillBaseId}:{$skillTrefId}"] = $originalSkillPath;
41  }

◆ addOriginalSkillTitle()

ilTestSkillLevelThresholdImportList::addOriginalSkillTitle (   $skillBaseId,
  $skillTrefId,
  $originalSkillTitle 
)

Definition at line 33 of file class.ilTestSkillLevelThresholdImportList.php.

34  {
35  $this->originalSkillTitles["{$skillBaseId}:{$skillTrefId}"] = $originalSkillTitle;
36  }

◆ addSkillLevelThreshold()

ilTestSkillLevelThresholdImportList::addSkillLevelThreshold ( ilTestSkillLevelThresholdImport  $importedSkillLevelThreshold)

Definition at line 43 of file class.ilTestSkillLevelThresholdImportList.php.

44  {
45  $this->importedSkillLevelThresholds[] = $importedSkillLevelThreshold;
46  }

◆ current()

ilTestSkillLevelThresholdImportList::current ( )

Definition at line 67 of file class.ilTestSkillLevelThresholdImportList.php.

References null.

68  {
69  $current = current($this->importedSkillLevelThresholds);
70  return $current !== false ? $current : null;
71  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getThresholdsByImportSkill()

ilTestSkillLevelThresholdImportList::getThresholdsByImportSkill (   $importSkillBaseId,
  $importSkillTrefId 
)

Definition at line 48 of file class.ilTestSkillLevelThresholdImportList.php.

48  : array
49  {
50  $thresholds = [];
51 
52  foreach ($this as $skillLevelThreshold) {
53  if ($skillLevelThreshold->getImportSkillBaseId() != $importSkillBaseId) {
54  continue;
55  }
56 
57  if ($skillLevelThreshold->getImportSkillTrefId() != $importSkillTrefId) {
58  continue;
59  }
60 
61  $thresholds[] = $skillLevelThreshold;
62  }
63 
64  return $thresholds;
65  }

◆ key()

ilTestSkillLevelThresholdImportList::key ( )

Definition at line 78 of file class.ilTestSkillLevelThresholdImportList.php.

Referenced by valid().

78  : ?int
79  {
80  return key($this->importedSkillLevelThresholds);
81  }
+ Here is the caller graph for this function:

◆ next()

ilTestSkillLevelThresholdImportList::next ( )

Definition at line 73 of file class.ilTestSkillLevelThresholdImportList.php.

73  : void
74  {
75  next($this->importedSkillLevelThresholds);
76  }

◆ rewind()

ilTestSkillLevelThresholdImportList::rewind ( )

Definition at line 88 of file class.ilTestSkillLevelThresholdImportList.php.

88  : void
89  {
90  reset($this->importedSkillLevelThresholds);
91  }

◆ valid()

ilTestSkillLevelThresholdImportList::valid ( )

Definition at line 83 of file class.ilTestSkillLevelThresholdImportList.php.

References key(), and null.

83  : bool
84  {
85  return key($this->importedSkillLevelThresholds) !== null;
86  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

Field Documentation

◆ $importedSkillLevelThresholds

ilTestSkillLevelThresholdImportList::$importedSkillLevelThresholds = []
protected

◆ $originalSkillPaths

ilTestSkillLevelThresholdImportList::$originalSkillPaths = []
protected

◆ $originalSkillTitles

ilTestSkillLevelThresholdImportList::$originalSkillTitles = []
protected

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