ILIAS  release_8 Revision v8.24
class.ilAssQuestionSolutionComparisonExpressionImportList.php
Go to the documentation of this file.
1<?php
2
26{
31
36
41
45 private $expressions;
46
50 public function __construct()
51 {
52 $this->importQuestionId = null;
53 $this->importSkillBaseId = null;
54 $this->importSkillTrefId = null;
55
56 $this->expressions = array();
57 }
58
62 public function getImportQuestionId(): ?int
63 {
65 }
66
71 {
72 $this->importQuestionId = $importQuestionId;
73 }
74
78 public function getImportSkillBaseId(): ?int
79 {
81 }
82
87 {
88 $this->importSkillBaseId = $importSkillBaseId;
89 }
90
94 public function getImportSkillTrefId(): ?int
95 {
97 }
98
103 {
104 $this->importSkillTrefId = $importSkillTrefId;
105 }
106
110 public function getExpressions(): array
111 {
112 return $this->expressions;
113 }
114
116 {
117 $expression->setImportQuestionId($this->getImportQuestionId());
118 $expression->setImportSkillBaseId($this->getImportSkillBaseId());
119 $expression->setImportSkillTrefId($this->getImportSkillTrefId());
120
121 $this->expressions[$expression->getOrderIndex()] = $expression;
122 }
123
128 {
129 return current($this->expressions);
130 }
131
135 public function next()
136 {
137 return next($this->expressions);
138 }
139
143 public function key()
144 {
145 return key($this->expressions);
146 }
147
151 public function valid(): bool
152 {
153 return key($this->expressions) !== null;
154 }
155
159 public function rewind()
160 {
161 return reset($this->expressions);
162 }
163
164 public function sleep(): void
165 {
166 // TODO: Implement __sleep() method.
167 }
168
169 public function wakeup(): void
170 {
171 // TODO: Implement __wakeup() method.
172 }
173}
__construct()
ilAssQuestionSolutionComparisonExpressionImportList constructor.