ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 21 of file class.ilTestSkillLevelThresholdImportList.php.

22  {
23  $this->originalSkillPaths["{$skillBaseId}:{$skillTrefId}"] = $originalSkillPath;
24  }

◆ addOriginalSkillTitle()

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

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

17  {
18  $this->originalSkillTitles["{$skillBaseId}:{$skillTrefId}"] = $originalSkillTitle;
19  }

◆ addSkillLevelThreshold()

ilTestSkillLevelThresholdImportList::addSkillLevelThreshold ( ilTestSkillLevelThresholdImport  $importedSkillLevelThreshold)

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

27  {
28  $this->importedSkillLevelThresholds[] = $importedSkillLevelThreshold;
29  }

◆ current()

ilTestSkillLevelThresholdImportList::current ( )
Returns
ilTestSkillLevelThresholdImport

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

54  {
55  return current($this->importedSkillLevelThresholds);
56  }

◆ getThresholdsByImportSkill()

ilTestSkillLevelThresholdImportList::getThresholdsByImportSkill (   $importSkillBaseId,
  $importSkillTrefId 
)

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

References array.

32  {
33  $thresholds = array();
34 
35  foreach ($this as $skillLevelThreshold) {
36  if ($skillLevelThreshold->getImportSkillBaseId() != $importSkillBaseId) {
37  continue;
38  }
39 
40  if ($skillLevelThreshold->getImportSkillTrefId() != $importSkillTrefId) {
41  continue;
42  }
43 
44  $thresholds[] = $skillLevelThreshold;
45  }
46 
47  return $thresholds;
48  }
Create styles array
The data for the language used.

◆ key()

ilTestSkillLevelThresholdImportList::key ( )
Returns
integer|bool

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

Referenced by valid().

70  {
71  return key($this->importedSkillLevelThresholds);
72  }
+ Here is the caller graph for this function:

◆ next()

ilTestSkillLevelThresholdImportList::next ( )
Returns
ilTestSkillLevelThresholdImport

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

62  {
63  return next($this->importedSkillLevelThresholds);
64  }

◆ rewind()

ilTestSkillLevelThresholdImportList::rewind ( )
Returns
ilTestSkillLevelThresholdImport|bool

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

86  {
87  return reset($this->importedSkillLevelThresholds);
88  }

◆ valid()

ilTestSkillLevelThresholdImportList::valid ( )
Returns
bool

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

References key().

78  {
79  return key($this->importedSkillLevelThresholds) !== null;
80  }
+ 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: