ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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 = array()
 
 $originalSkillPaths = array()
 
 $importedSkillLevelThresholds = array()
 

Detailed Description

Member Function Documentation

◆ addOriginalSkillPath()

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

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

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

◆ addOriginalSkillTitle()

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

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

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

◆ addSkillLevelThreshold()

ilTestSkillLevelThresholdImportList::addSkillLevelThreshold ( ilTestSkillLevelThresholdImport  $importedSkillLevelThreshold)

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

42  {
43  $this->importedSkillLevelThresholds[] = $importedSkillLevelThreshold;
44  }

◆ current()

ilTestSkillLevelThresholdImportList::current ( )

◆ getThresholdsByImportSkill()

ilTestSkillLevelThresholdImportList::getThresholdsByImportSkill (   $importSkillBaseId,
  $importSkillTrefId 
)

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

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

◆ key()

ilTestSkillLevelThresholdImportList::key ( )
Returns
integer|bool

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

Referenced by valid().

82  {
83  return key($this->importedSkillLevelThresholds);
84  }
+ Here is the caller graph for this function:

◆ next()

ilTestSkillLevelThresholdImportList::next ( )

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

74  {
75  return next($this->importedSkillLevelThresholds);
76  }

◆ rewind()

ilTestSkillLevelThresholdImportList::rewind ( )
Returns
ilTestSkillLevelThresholdImport|bool

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

98  {
99  return reset($this->importedSkillLevelThresholds);
100  }

◆ valid()

ilTestSkillLevelThresholdImportList::valid ( )
Returns
bool

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

References key().

89  : bool
90  {
91  return key($this->importedSkillLevelThresholds) !== null;
92  }
+ Here is the call graph for this function:

Field Documentation

◆ $importedSkillLevelThresholds

ilTestSkillLevelThresholdImportList::$importedSkillLevelThresholds = array()
protected

◆ $originalSkillPaths

ilTestSkillLevelThresholdImportList::$originalSkillPaths = array()
protected

◆ $originalSkillTitles

ilTestSkillLevelThresholdImportList::$originalSkillTitles = array()
protected

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