ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilAssQuestionSolutionComparisonExpressionImportList.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Modules/TestQuestionPool/classes/questions/class.ilAssQuestionSolutionComparisonExpressionImport.php';
5
13{
18
23
28
32 private $expressions;
33
37 public function __construct()
38 {
39 $this->importQuestionId = null;
40 $this->importSkillBaseId = null;
41 $this->importSkillTrefId = null;
42
43 $this->expressions = array();
44 }
45
49 public function getImportQuestionId()
50 {
52 }
53
58 {
59 $this->importQuestionId = $importQuestionId;
60 }
61
65 public function getImportSkillBaseId()
66 {
68 }
69
74 {
75 $this->importSkillBaseId = $importSkillBaseId;
76 }
77
81 public function getImportSkillTrefId()
82 {
84 }
85
90 {
91 $this->importSkillTrefId = $importSkillTrefId;
92 }
93
97 public function getExpressions()
98 {
99 return $this->expressions;
100 }
101
103 {
104 $expression->setImportQuestionId($this->getImportQuestionId());
105 $expression->setImportSkillBaseId($this->getImportSkillBaseId());
106 $expression->setImportSkillTrefId($this->getImportSkillTrefId());
107
108 $this->expressions[$expression->getOrderIndex()] = $expression;
109 }
110
114 public function current()
115 {
116 return current($this->expressions);
117 }
118
122 public function next()
123 {
124 return next($this->expressions);
125 }
126
130 public function key()
131 {
132 return key($this->expressions);
133 }
134
138 public function valid()
139 {
140 return key($this->expressions) !== null;
141 }
142
146 public function rewind()
147 {
148 return reset($this->expressions);
149 }
150
151 public function sleep()
152 {
153 // TODO: Implement __sleep() method.
154 }
155
156 public function wakeup()
157 {
158 // TODO: Implement __wakeup() method.
159 }
160}
An exception for terminatinating execution or to throw for unit testing.
__construct()
ilAssQuestionSolutionComparisonExpressionImportList constructor.