19 declare(strict_types=1);
34 foreach ($this->sequencedata[
'sequence'] as $key => $oldSequenceElement) {
37 if ($newSequenceElement) {
38 $this->sequencedata[
'sequence'][$key] = $newSequenceElement;
40 unset($this->sequencedata[
'sequence'][$key]);
44 $this->sequencedata[
'sequence'] = array_values($this->sequencedata[
'sequence']);
46 $this->sequencedata[
'postponed'] = $this->
removeArrayValue($this->sequencedata[
'postponed'], $question_id);
47 $this->sequencedata[
'hidden'] = $this->
removeArrayValue($this->sequencedata[
'hidden'], $question_id);
49 $this->optionalQuestions = $this->
removeArrayValue($this->optionalQuestions, $question_id);
51 $this->alreadyPresentedQuestions = $this->
removeArrayValue($this->alreadyPresentedQuestions, $question_id);
53 $this->alreadyCheckedQuestions = $this->
removeArrayValue($this->alreadyCheckedQuestions, $question_id);
58 foreach ($array as $key => $val) {
getNewSequencePosition(int $oldSequencePosition)
removeQuestion(int $question_id, ilTestReindexedSequencePositionMap $reindexedSequencePositionMap)
removeArrayValue(array $array, int $value)