ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 25 of file class.ilAssQuestionAssignedSkillList.php.

Member Function Documentation

◆ addSkill()

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

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

36  : void
37  {
38  $this->skills[] = "{$skillBaseId}:{$skillTrefId}";
39  }

◆ current()

ilAssQuestionAssignedSkillList::current ( )
Returns
array

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

52  : array
53  {
54  return current($this->skills);
55  }

◆ key()

ilAssQuestionAssignedSkillList::key ( )
Returns
integer|bool

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

References $res.

Referenced by valid().

69  {
70  $res = key($this->skills);
71  return $res;
72  }
$res
Definition: ltiservices.php:69
+ Here is the caller graph for this function:

◆ next()

ilAssQuestionAssignedSkillList::next ( )
Returns
array

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

60  : array
61  {
62  return next($this->skills);
63  }

◆ rewind()

ilAssQuestionAssignedSkillList::rewind ( )
Returns
array|bool

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

87  {
88  return reset($this->skills);
89  }

◆ skillsExist()

ilAssQuestionAssignedSkillList::skillsExist ( )
Returns
bool

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

44  : bool
45  {
46  return (bool) count($this->skills);
47  }

◆ sleep()

ilAssQuestionAssignedSkillList::sleep ( )
Returns
array

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

94  : array
95  {
96  return array('skills');
97  }

◆ valid()

ilAssQuestionAssignedSkillList::valid ( )
Returns
bool

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

References $res, and key().

77  : bool
78  {
79  $res = key($this->skills);
80  return $res !== null;
81  }
$res
Definition: ltiservices.php:69
+ Here is the call graph for this function:

◆ wakeup()

ilAssQuestionAssignedSkillList::wakeup ( )

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

99  : void
100  {
101  // TODO: Implement __wakeup() method.
102  }

Field Documentation

◆ $skills

ilAssQuestionAssignedSkillList::$skills = array()
protected

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


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