ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssQuestionAssignedSkillList Class Reference
+ Inheritance diagram for ilAssQuestionAssignedSkillList:
+ Collaboration diagram for ilAssQuestionAssignedSkillList:

Public Member Functions

 addSkill (int $skill_base_id, int $skill_ref_id)
 
 skillsExist ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 sleep ()
 
 wakeup ()
 

Protected Attributes

array $skills = []
 

Detailed Description

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

Member Function Documentation

◆ addSkill()

ilAssQuestionAssignedSkillList::addSkill ( int  $skill_base_id,
int  $skill_ref_id 
)

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

29 : void
30 {
31 $this->skills[] = "{$skill_base_id}:{$skill_ref_id}";
32 }

◆ current()

ilAssQuestionAssignedSkillList::current ( )

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

39 : ?string
40 {
41 $current = current($this->skills);
42 return $current !== false ? $current : null;
43 }

References current().

Referenced by current().

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

◆ key()

ilAssQuestionAssignedSkillList::key ( )

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

50 : ?int
51 {
52 return key($this->skills);
53 }

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

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

45 : void
46 {
47 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 ( )

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

61 : void
62 {
63 reset($this->skills);
64 }

◆ skillsExist()

ilAssQuestionAssignedSkillList::skillsExist ( )

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

34 : bool
35 {
36 return (bool) count($this->skills);
37 }

◆ sleep()

ilAssQuestionAssignedSkillList::sleep ( )

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

66 : array
67 {
68 return ['skills'];
69 }

◆ valid()

ilAssQuestionAssignedSkillList::valid ( )

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

55 : bool
56 {
57 $res = key($this->skills);
58 return $res !== null;
59 }
$res
Definition: ltiservices.php:69

References $res, and key().

+ Here is the call graph for this function:

◆ wakeup()

ilAssQuestionAssignedSkillList::wakeup ( )

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

71 : void
72 {
73 // TODO: Implement __wakeup() method.
74 }

Field Documentation

◆ $skills

array ilAssQuestionAssignedSkillList::$skills = []
protected

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


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