ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 }

References current().

Referenced by current().

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

◆ getThresholdsByImportSkill()

ilTestSkillLevelThresholdImportList::getThresholdsByImportSkill (   $importSkillBaseId,
  $importSkillTrefId 
)

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

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 }

◆ key()

ilTestSkillLevelThresholdImportList::key ( )
Returns
integer|bool

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

70 {
71 return key($this->importedSkillLevelThresholds);
72 }

References key().

Referenced by key(), and valid().

+ Here is the call graph for this function:
+ 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 }

References next().

Referenced by next().

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

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

78 {
79 return key($this->importedSkillLevelThresholds) !== null;
80 }

References key().

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