ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilAssQuestionSolutionComparisonExpressionImportList.php
Go to the documentation of this file.
1 <?php
2 
27 {
28  private ?int $importQuestionId;
29  private ?int $importSkillBaseId;
30  private ?int $importSkillTrefId;
32  private array $expressions;
33 
34  public function __construct()
35  {
36  $this->importQuestionId = null;
37  $this->importSkillBaseId = null;
38  $this->importSkillTrefId = null;
39 
40  $this->expressions = [];
41  }
42 
43  public function getImportQuestionId(): ?int
44  {
46  }
47 
51  public function setImportQuestionId($importQuestionId): void
52  {
53  $this->importQuestionId = $importQuestionId;
54  }
55 
56  public function getImportSkillBaseId(): ?int
57  {
59  }
60 
64  public function setImportSkillBaseId($importSkillBaseId): void
65  {
66  $this->importSkillBaseId = $importSkillBaseId;
67  }
68 
69  public function getImportSkillTrefId(): ?int
70  {
72  }
73 
77  public function setImportSkillTrefId($importSkillTrefId): void
78  {
79  $this->importSkillTrefId = $importSkillTrefId;
80  }
81 
85  public function getExpressions(): array
86  {
87  return $this->expressions;
88  }
89 
91  {
92  $expression->setImportQuestionId($this->getImportQuestionId());
93  $expression->setImportSkillBaseId($this->getImportSkillBaseId());
94  $expression->setImportSkillTrefId($this->getImportSkillTrefId());
95 
96  $this->expressions[$expression->getOrderIndex()] = $expression;
97  }
98 
100  {
101  return current($this->expressions);
102  }
103 
104  public function next(): void
105  {
106  next($this->expressions);
107  }
108 
109  public function key(): int
110  {
111  return key($this->expressions);
112  }
113 
114  public function valid(): bool
115  {
116  return key($this->expressions) !== null;
117  }
118 
119  public function rewind(): void
120  {
121  reset($this->expressions);
122  }
123 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
addExpression(ilAssQuestionSolutionComparisonExpressionImport $expression)