ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAssQuestionAssignedSkillList Class Reference
+ Inheritance diagram for ilAssQuestionAssignedSkillList:
+ Collaboration diagram for ilAssQuestionAssignedSkillList:

Public Member Functions

 addSkill ($skillBaseId, $skillTrefId)
 
 skillsExist ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 sleep ()
 
 wakeup ()
 

Protected Attributes

 $skills = array()
 

Detailed Description

Definition at line 10 of file class.ilAssQuestionAssignedSkillList.php.

Member Function Documentation

◆ addSkill()

ilAssQuestionAssignedSkillList::addSkill (   $skillBaseId,
  $skillTrefId 
)
Parameters
integer$skillBaseId
integer$skillTrefId

Definition at line 21 of file class.ilAssQuestionAssignedSkillList.php.

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

◆ current()

ilAssQuestionAssignedSkillList::current ( )
Returns
array

Definition at line 37 of file class.ilAssQuestionAssignedSkillList.php.

38 {
39 return current($this->skills);
40 }

References current().

Referenced by current().

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

◆ key()

ilAssQuestionAssignedSkillList::key ( )
Returns
integer|bool

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

54 {
55 $res = key($this->skills);
56 return $res;
57 }

References $res, and key().

Referenced by key(), and valid().

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

◆ next()

ilAssQuestionAssignedSkillList::next ( )
Returns
array

Definition at line 45 of file class.ilAssQuestionAssignedSkillList.php.

46 {
47 return next($this->skills);
48 }

References next().

Referenced by next().

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

◆ rewind()

ilAssQuestionAssignedSkillList::rewind ( )
Returns
array|bool

Definition at line 71 of file class.ilAssQuestionAssignedSkillList.php.

72 {
73 return reset($this->skills);
74 }

◆ skillsExist()

ilAssQuestionAssignedSkillList::skillsExist ( )
Returns
bool

Definition at line 29 of file class.ilAssQuestionAssignedSkillList.php.

30 {
31 return (bool)count($this->skills);
32 }

◆ sleep()

ilAssQuestionAssignedSkillList::sleep ( )
Returns
array

Definition at line 79 of file class.ilAssQuestionAssignedSkillList.php.

80 {
81 return array('skills');
82 }

◆ valid()

ilAssQuestionAssignedSkillList::valid ( )
Returns
bool

Definition at line 62 of file class.ilAssQuestionAssignedSkillList.php.

63 {
64 $res = key($this->skills);
65 return $res !== null;
66 }

References $res, and key().

+ Here is the call graph for this function:

◆ wakeup()

ilAssQuestionAssignedSkillList::wakeup ( )

Definition at line 84 of file class.ilAssQuestionAssignedSkillList.php.

85 {
86 // TODO: Implement __wakeup() method.
87 }

Field Documentation

◆ $skills

ilAssQuestionAssignedSkillList::$skills = array()
protected

Definition at line 15 of file class.ilAssQuestionAssignedSkillList.php.


The documentation for this class was generated from the following file: