ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

68 {
69 $current = current($this->importedSkillLevelThresholds);
70 return $current !== false ? $current : null;
71 }

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

78 : ?int
79 {
80 return key($this->importedSkillLevelThresholds);
81 }

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 ( )

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

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

References next().

Referenced by next().

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

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

83 : bool
84 {
85 return key($this->importedSkillLevelThresholds) !== null;
86 }

References key().

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