ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilAssQuestionSkillAssignmentImportList.php
Go to the documentation of this file.
1 <?php
2 
26 {
30  protected $assignments;
31 
35  public function __construct()
36  {
37  $this->assignments = array();
38  }
39 
43  public function addAssignment(ilAssQuestionSkillAssignmentImport $assignment): void
44  {
45  $this->assignments[] = $assignment;
46  }
47 
48  public function assignmentsExist(): bool
49  {
50  return count($this->assignments) > 0;
51  }
52 
56  public function current()
57  {
58  return current($this->assignments);
59  }
60 
64  public function next()
65  {
66  return next($this->assignments);
67  }
68 
72  public function key()
73  {
74  $res = key($this->assignments);
75  return $res;
76  }
77 
81  public function valid(): bool
82  {
83  $res = key($this->assignments);
84  return $res !== null;
85  }
86 
90  public function rewind()
91  {
92  return reset($this->assignments);
93  }
94 
95  public function sleep(): void
96  {
97  // TODO: Implement __sleep() method.
98  }
99 
100  public function wakeup(): void
101  {
102  // TODO: Implement __wakeup() method.
103  }
104 }
$res
Definition: ltiservices.php:69
__construct()
ilAssQuestionSkillAssignmentImportList constructor.
addAssignment(ilAssQuestionSkillAssignmentImport $assignment)