ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 56 of file class.ilTestSkillLevelThresholdImportList.php.

57 {
58 return current($this->importedSkillLevelThresholds);
59 }

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 {
37 if( $skillLevelThreshold->getImportSkillBaseId() != $importSkillBaseId )
38 {
39 continue;
40 }
41
42 if( $skillLevelThreshold->getImportSkillTrefId() != $importSkillTrefId )
43 {
44 continue;
45 }
46
47 $thresholds[] = $skillLevelThreshold;
48 }
49
50 return $thresholds;
51 }

◆ key()

ilTestSkillLevelThresholdImportList::key ( )
Returns
integer|bool

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

73 {
74 return key($this->importedSkillLevelThresholds);
75 }

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

65 {
66 return next($this->importedSkillLevelThresholds);
67 }

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

89 {
90 return reset($this->importedSkillLevelThresholds);
91 }

◆ valid()

ilTestSkillLevelThresholdImportList::valid ( )
Returns
bool

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

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

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: