ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.ilAssQuestionSkillAssignmentImportList.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
27 protected array $assignments;
28
29 public function __construct()
30 {
31 $this->assignments = [];
32 }
33
34 public function addAssignment(ilAssQuestionSkillAssignmentImport $assignment): void
35 {
36 $this->assignments[] = $assignment;
37 }
38
39 public function assignmentsExist(): bool
40 {
41 return count($this->assignments) > 0;
42 }
43
45 {
46 $current = current($this->assignments);
47 return $current !== false ? $current : null;
48 }
49
50 public function next(): void
51 {
52 next($this->assignments);
53 }
54
55 public function key(): ?int
56 {
57 return key($this->assignments);
58 }
59
60 public function valid(): bool
61 {
62 $res = key($this->assignments);
63 return $res !== null;
64 }
65
66 public function rewind(): void
67 {
68 reset($this->assignments);
69 }
70}
addAssignment(ilAssQuestionSkillAssignmentImport $assignment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
foreach($_POST as $key=> $value) $res