Ja das habe ich gemacht.
Die Debug-Seite sieht so aus:
[Information] Interview gestartet (neue Nummer 119)
[Information] Der Fragebogen Belief-Study im Projekt COGNEMO_rep wird verwendet
[Verarbeitung] Erstelle Seite 14 in Fragebogen Belief-Study
[Inhalt] Erstelle Frage RD01
[Information] Vom Zufallsgenerator RD01 wurden folgende Codes gezogen: 106, 8, 89, 50, 5, 6, 79, 12, 64, 99, 43, 15, 91, 23, 74, 102, 25, 39, 80, 105
[Information] valueList(RD01) = Array [RD01x01:NK1106-NK1106a, RD01x02:NK1008-NK1008a, RD01x03:NK1089-NK1089a, ...]
[Inhalt] Erstelle Frage RD02
[Information] Vom Zufallsgenerator RD02 wurden folgende Codes gezogen: 13, 101, 87, 75, 19, 95, 15, 72, 26, 20, 99, 73, 36, 33, 98, 29, 54, 4, 60, 2
[Information] valueList(RD02) = Array [RD02x01:PK2013-PK2013a, RD02x02:PK2101-PK2101a, RD02x03:PK2087-PK2087a, ...]
[Information] Entsprechend setPageOrder() werden nun folgende Seiten gezeigt:
486 [AbFragI]
[Information] Die Seite zeigt keine Inhalte, automatisch weiter mit Seite Nr. 486
[Verarbeitung] Erstelle Seite 486 in Fragebogen Belief-Study
[Inhalt] Erstelle Frage VA06
bis valueList(RD02) wird alles entsprechend ausgeführt, wie es ohne array_splice vorher funktioniert hat. Aber ohne array_splice wird folgendes ausgeführt:
[Information] Entsprechend setPageOrder() werden nun folgende Seiten gezeigt:
242 [NK1113], 243 [NK1113a], 376 [PK2063], 377 [PK2063a], 50 [NK1017], 51 [NK1017a], 394 [PK2072], 395 [PK2072a], 336 [PK2043], 337 [PK2043a], 282 [PK2016], 283 [PK2016a], 234 [NK1109], 235 [NK1109a], 450 [PK2100], 451 [PK2100a], 296 [PK2023], 297 [PK2023a], 478 [PK2114], 479 [PK2114a], 308 [PK2029], 309 [PK2029a], 318 [PK2034], 319 [PK2034a], 402 [PK2076], 403 [PK2076a], 276 [PK2013], 277 [PK2013a], 54 [NK1019], 55 [NK1019a], 226 [NK1105], 227 [NK1105a], 176 [NK1080], 177 [NK1080a], 188 [NK1086], 189 [NK1086a], 174 [NK1079], 175 [NK1079a], 430 [PK2090], 431 [PK2090a], 274 [PK2012], 275 [PK2012a], 354 [PK2052], 355 [PK2052a], 260 [PK2005], 261 [PK2005a], 382 [PK2066], 383 [PK2066a], 58 [NK1021], 59 [NK1021a], 140 [NK1062], 141 [NK1062a], 180 [NK1082], 181 [NK1082a], 156 [NK1070], 157 [NK1070a], 306 [PK2028], 307 [PK2028a], 120 [NK1052], 121 [NK1052a], 328 [PK2039], 329 [PK2039a], 36 [NK1010], 37 [NK1010a], 116 [NK1050], 117 [NK1050a], 106 [NK1045], 107 [NK1045a], 206 [NK1095], 207 [NK1095a], 46 [NK1015], 47 [NK1015a], 362 [PK2056], 363 [PK2056a], 118 [NK1051], 119 [NK1051a], 390 [PK2070], 391 [PK2070a], 64 [NK1024], 65 [NK1024a], 486 [AbFragI]
[Information] Die Seite zeigt keine Inhalte, automatisch weiter mit Seite Nr. 242
[Verarbeitung] Erstelle Seite 242 in Fragebogen Belief-Study