32 foreach ($this->sequencedata[
'sequence'] as
$key => $oldSequenceElement) {
35 if ($newSequenceElement) {
36 $this->sequencedata[
'sequence'][
$key] = $newSequenceElement;
38 unset($this->sequencedata[
'sequence'][
$key]);
42 $this->sequencedata[
'sequence'] = array_values($this->sequencedata[
'sequence']);
44 $this->sequencedata[
'postponed'] = $this->
removeArrayValue($this->sequencedata[
'postponed'], $questionId);
45 $this->sequencedata[
'hidden'] = $this->
removeArrayValue($this->sequencedata[
'hidden'], $questionId);
47 $this->optionalQuestions = $this->
removeArrayValue($this->optionalQuestions, $questionId);
49 $this->alreadyPresentedQuestions = $this->
removeArrayValue($this->alreadyPresentedQuestions, $questionId);
51 $this->alreadyCheckedQuestions = $this->
removeArrayValue($this->alreadyCheckedQuestions, $questionId);
56 foreach ($array as
$key => $val) {
getNewSequencePosition(int $oldSequencePosition)
removeQuestion($questionId, ilTestReindexedSequencePositionMap $reindexedSequencePositionMap)
removeArrayValue($array, $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...