ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
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

Deprecated:
12: Use ILIAS\Test\ExportImport\Import\SkillLevelThresholdImporter instead

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

Member Function Documentation

◆ addOriginalSkillPath()

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

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

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

◆ addOriginalSkillTitle()

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

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

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

◆ addSkillLevelThreshold()

ilTestSkillLevelThresholdImportList::addSkillLevelThreshold ( ilTestSkillLevelThresholdImport  $importedSkillLevelThreshold)

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

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

◆ current()

ilTestSkillLevelThresholdImportList::current ( )

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

65 {
66 $current = current($this->importedSkillLevelThresholds);
67 return $current !== false ? $current : null;
68 }

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 45 of file class.ilTestSkillLevelThresholdImportList.php.

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

◆ key()

ilTestSkillLevelThresholdImportList::key ( )

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

75 : ?int
76 {
77 return key($this->importedSkillLevelThresholds);
78 }

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 70 of file class.ilTestSkillLevelThresholdImportList.php.

70 : void
71 {
72 next($this->importedSkillLevelThresholds);
73 }

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 85 of file class.ilTestSkillLevelThresholdImportList.php.

85 : void
86 {
87 reset($this->importedSkillLevelThresholds);
88 }

◆ valid()

ilTestSkillLevelThresholdImportList::valid ( )

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

80 : bool
81 {
82 return key($this->importedSkillLevelThresholds) !== null;
83 }

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: