ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAssQuestionAssignedSkillList.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
11 {
15  protected $skills = array();
16 
21  public function addSkill($skillBaseId, $skillTrefId)
22  {
23  $this->skills[] = "{$skillBaseId}:{$skillTrefId}";
24  }
25 
29  public function skillsExist()
30  {
31  return (bool) count($this->skills);
32  }
33 
37  public function current()
38  {
39  return current($this->skills);
40  }
41 
45  public function next()
46  {
47  return next($this->skills);
48  }
49 
53  public function key()
54  {
55  $res = key($this->skills);
56  return $res;
57  }
58 
62  public function valid()
63  {
64  $res = key($this->skills);
65  return $res !== null;
66  }
67 
71  public function rewind()
72  {
73  return reset($this->skills);
74  }
75 
79  public function sleep()
80  {
81  return array('skills');
82  }
83 
84  public function wakeup()
85  {
86  // TODO: Implement __wakeup() method.
87  }
88 }
foreach($_POST as $key=> $value) $res