Browse Source

Exception constant passée en texte

Mael ETIENNE 3 years ago
parent
commit
05e9fe2688

+ 4
- 4
LearningModels/SCORM2004/SequencingNavigation/DeliveryRequest.php View File

@@ -43,20 +43,20 @@ class DeliveryRequest extends SeqNavRequest
43 43
         // seules les noeuds terminaux peuvent être livrés
44 44
         $children = $this->domScorm2004->getChildren($this->deliveryItem);
45 45
         if (!empty($children)) {
46
-            $this->exception = _AGO_SCORM_EXCEPTION_DB_1_1_1;
46
+            $this->exception = '_AGO_SCORM_EXCEPTION_DB_1_1_1';
47 47
             return;
48 48
         }
49 49
         $root = $this->scorm2004Track->getOrganizationId();
50 50
         $path = $this->domScorm2004->getDirectPath($root, $this->deliveryItem);
51 51
 
52 52
         if (empty($path)) {
53
-            $this->exception = _AGO_SCORM_EXCEPTION_DB_1_1_2;
53
+            $this->exception = '_AGO_SCORM_EXCEPTION_DB_1_1_2';
54 54
             return;
55 55
         }
56 56
         // Vérification que chaque item est valide, de la racine jusqu'au item de livraison
57 57
         foreach ($path as $item) {
58 58
             if ($this->checkItem($item)) {
59
-                $this->exception = _AGO_SCORM_EXCEPTION_DB_1_1_3;
59
+                $this->exception = '_AGO_SCORM_EXCEPTION_DB_1_1_3';
60 60
                 return;
61 61
             }
62 62
         }
@@ -78,7 +78,7 @@ class DeliveryRequest extends SeqNavRequest
78 78
         // Vérifier qu'un item ne soit pas déjà actif
79 79
         $mapTrackCurrentItem = $scorm2004MapTrackItemRepository->findOneBy(array('item_identifier' => $this->currentItem, 'scorm2004Track' => $this->scorm2004Track));
80 80
         if ($this->currentItem && $mapTrackCurrentItem->getIsActive()) {
81
-            $this->exception = _AGO_SCORM_EXCEPTION_DB_2_1;
81
+            $this->exception = '_AGO_SCORM_EXCEPTION_DB_2_1';
82 82
             return;
83 83
         }
84 84
 

+ 1
- 1
LearningModels/SCORM2004/SequencingNavigation/NavigationRequest.php View File

@@ -99,7 +99,7 @@ class NavigationRequest extends SeqNavRequest
99 99
 
100 100
             default:
101 101
 //@TODO mettre en place les var de langue
102
-                //$this->exception = _AGO_SCORM_EXCEPTION_NB_2_1_13;
102
+                //$this->exception = '_AGO_SCORM_EXCEPTION_NB_2_1_13';
103 103
                 return;
104 104
         }
105 105
     }

+ 1
- 1
LearningModels/SCORM2004/SequencingNavigation/SeqNavRequest.php View File

@@ -1649,7 +1649,7 @@ class SeqNavRequest implements ContainerAwareInterface
1649 1649
      *
1650 1650
      * @return string
1651 1651
      */
1652
-    public function getException(): string
1652
+    public function getException(): ?string
1653 1653
     {
1654 1654
         return $this->exception;
1655 1655
     }

+ 40
- 40
LearningModels/SCORM2004/SequencingNavigation/SequencingRequest.php View File

@@ -95,7 +95,7 @@ class SequencingRequest extends SeqNavRequest
95 95
                 break;
96 96
 
97 97
             default:
98
-                $this->exception = _AGO_SCORM_EXCEPTION_SB_2_12_1;
98
+                $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_12_1';
99 99
                 return;
100 100
         }
101 101
     }
@@ -109,7 +109,7 @@ class SequencingRequest extends SeqNavRequest
109 109
     {
110 110
         // Vérifier que la session d'activité n'aie pas déjà été initiée
111 111
         if ($this->currentItem) {
112
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_5_1;
112
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_5_1';
113 113
             return;
114 114
         }
115 115
 
@@ -125,7 +125,7 @@ class SequencingRequest extends SeqNavRequest
125 125
             $startItem = $this->getItemFromTreeflow($treeRoot, SCORM2004_TRAVERSE_FORWARD, true);
126 126
 
127 127
             if (!$startItem['deliverable']) {
128
-                $this->exception = _AGO_SCORM_EXCEPTION_SB_2_5_1;
128
+                $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_5_1';
129 129
                 return;
130 130
             }
131 131
 
@@ -143,13 +143,13 @@ class SequencingRequest extends SeqNavRequest
143 143
     {
144 144
         // Vérifier que la session d'activité n'aie pas déjà été initiée
145 145
         if ($this->currentItem) {
146
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_6_1;
146
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_6_1';
147 147
             return;
148 148
         }
149 149
 
150 150
         // Vérifier qu'il y aie bien un item suspendu
151 151
         if (!$this->suspendedItem) {
152
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_6_2;
152
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_6_2';
153 153
             return;
154 154
         }
155 155
 
@@ -167,7 +167,7 @@ class SequencingRequest extends SeqNavRequest
167 167
     {
168 168
         // Vérifier que la session d'activité est déjà initiée
169 169
         if (!$this->currentItem) {
170
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_7_1;
170
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_7_1';
171 171
             return;
172 172
         }
173 173
 
@@ -176,7 +176,7 @@ class SequencingRequest extends SeqNavRequest
176 176
         if ($currentParent) {
177 177
             // et que l'on puisse utilisé le controle de séquencage 'flow'
178 178
             if (!$this->getSequencingControl($currentParent, 'flow')) {
179
-                $this->exception = _AGO_SCORM_EXCEPTION_SB_2_7_2;
179
+                $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_7_2';
180 180
                 return;
181 181
             }
182 182
         }
@@ -214,7 +214,7 @@ class SequencingRequest extends SeqNavRequest
214 214
     {
215 215
         // Vérifier que la session d'activité a déjà été initiée
216 216
         if (!$this->currentItem) {
217
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_8_1;
217
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_8_1';
218 218
             return;
219 219
         }
220 220
 
@@ -222,7 +222,7 @@ class SequencingRequest extends SeqNavRequest
222 222
         $currentParent = $this->domScorm2004->getParent($this->currentItem);
223 223
         if ($currentParent) {
224 224
             if (!$this->getSequencingControl($currentParent, 'flow')) {
225
-                $this->exception = _AGO_SCORM_EXCEPTION_SB_2_8_2;
225
+                $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_8_2';
226 226
                 return;
227 227
             }
228 228
         }
@@ -253,7 +253,7 @@ class SequencingRequest extends SeqNavRequest
253 253
         
254 254
         // L'item ciblé doit être valide
255 255
         if (!$this->targetItem) {
256
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_1;
256
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_1';
257 257
             return;
258 258
         }
259 259
 
@@ -268,14 +268,14 @@ class SequencingRequest extends SeqNavRequest
268 268
                 // (présent dans les enfants disponibles de son item parent)
269 269
                 $availableSiblings = $this->getAvailableChildren($parent);
270 270
                 if (array_search($item, $availableSiblings) === false) {
271
-                    $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_2;
271
+                    $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_2';
272 272
                     return;
273 273
                 }
274 274
             }
275 275
 
276 276
             // Vérifier que l'item ne soit pas indisponible(caché) pour le choix
277 277
             if ($this->checkSequencingRules($item, array(SCORM2004_SEQUENCING_PRE_HIDDEN))) {
278
-                $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_3;
278
+                $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_3';
279 279
                 return;
280 280
             }
281 281
         }
@@ -285,7 +285,7 @@ class SequencingRequest extends SeqNavRequest
285 285
         $targetParent = $this->domScorm2004->getParent($this->targetItem);
286 286
         if ($targetParent) {
287 287
             if (!$this->getSequencingControl($targetParent, 'choice')) {
288
-                $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_4;
288
+                $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_4';
289 289
                 return;
290 290
             }
291 291
         }
@@ -335,7 +335,7 @@ class SequencingRequest extends SeqNavRequest
335 335
                 }
336 336
 
337 337
                 if (empty($path)) {
338
-                    $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_5;
338
+                    $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_5';
339 339
                     return;
340 340
                 }
341 341
 
@@ -352,7 +352,7 @@ class SequencingRequest extends SeqNavRequest
352 352
                 $path = $this->domScorm2004->getDirectPath($commonItem, $this->targetItem, true, false);
353 353
 
354 354
                 if (empty($path)) {
355
-                    $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_5;
355
+                    $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_5';
356 356
                     return;
357 357
                 }
358 358
 
@@ -368,7 +368,7 @@ class SequencingRequest extends SeqNavRequest
368 368
                     $mapTrackItem = $scorm2004MapTrackItemRepository->findOneBy(array('item_identifier' => $item, 'scorm2004Track' => $this->scorm2004Track));
369 369
 
370 370
                     if (!$mapTrackItem->getIsActive() && $item != $commonItem && $this->getSequencingControl($item, 'prevent_activation')) {
371
-                        $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_6;
371
+                        $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_6';
372 372
                         return;
373 373
                     }
374 374
                 }
@@ -377,7 +377,7 @@ class SequencingRequest extends SeqNavRequest
377 377
                 $path = $this->domScorm2004->getDirectPath($this->currentItem, $this->targetItem);
378 378
 
379 379
                 if (empty($path)) {
380
-                    $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_5;
380
+                    $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_5';
381 381
                     return;
382 382
                 }
383 383
 
@@ -386,7 +386,7 @@ class SequencingRequest extends SeqNavRequest
386 386
                 array_pop($path);
387 387
                 foreach ($path as $item) {
388 388
                     if (!$this->getSequencingControl($item, 'choiceExit')) {
389
-                        $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_7;
389
+                        $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_7';
390 390
                         return;
391 391
                     }
392 392
                 }
@@ -397,7 +397,7 @@ class SequencingRequest extends SeqNavRequest
397 397
                 $path = $this->domScorm2004->getDirectPath($this->currentItem, $commonItem, true, false);
398 398
 
399 399
                 if (empty($path)) {
400
-                    $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_5;
400
+                    $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_5';
401 401
                     return;
402 402
                 }
403 403
 
@@ -406,7 +406,7 @@ class SequencingRequest extends SeqNavRequest
406 406
                 foreach ($path as $item) {
407 407
                     // Vérfier que chaque item soit autorisé à sortir après un choix
408 408
                     if (!$this->getSequencingControl($item, 'choiceExit')) {
409
-                        $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_7;
409
+                        $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_7';
410 410
                         return;
411 411
                     }
412 412
 
@@ -436,7 +436,7 @@ class SequencingRequest extends SeqNavRequest
436 436
                         $branch = $this->getBranch($choiceItem);
437 437
                         $targetInDescendentsOfChoice = in_array($this->targetItem, $branch);
438 438
                         if (!$targetInDescendentsOfChoice && $this->targetItem != $choiceItem && $this->targetItem != $constrainedItem) {
439
-                            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_8;
439
+                            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_8';
440 440
                             return;
441 441
                         }
442 442
                     }
@@ -446,7 +446,7 @@ class SequencingRequest extends SeqNavRequest
446 446
                 $path = $this->domScorm2004->getDirectPath($commonItem, $this->targetItem, true, false);
447 447
 
448 448
                 if (empty($path)) {
449
-                    $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_5;
449
+                    $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_5';
450 450
                     return;
451 451
                 }
452 452
 
@@ -467,7 +467,7 @@ class SequencingRequest extends SeqNavRequest
467 467
 
468 468
                             $mapTrackItem = $scorm2004MapTrackItemRepository->findOneBy(array('item_identifier' => $item, 'scorm2004Track' => $this->scorm2004Track));
469 469
                             if (!$mapTrackItem->getIsActive() && $item != $commonItem && $this->getSequencingControl($item, 'prevent_activation')) {
470
-                                $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_6;
470
+                                $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_6';
471 471
                                 return;
472 472
                             }
473 473
                         }
@@ -479,7 +479,7 @@ class SequencingRequest extends SeqNavRequest
479 479
                         foreach ($path as $item) {
480 480
                             $mapTrackItem = $scorm2004MapTrackItemRepository->findOneBy(array('item_identifier' => $item, 'scorm2004Track' => $this->scorm2004Track));
481 481
                             if (!$mapTrackItem->getIsActive() && $item != $commonItem && $this->getSequencingControl($item, 'prevent_activation')) {
482
-                                $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_6;
482
+                                $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_6';
483 483
                                 return;
484 484
                             }
485 485
                         }
@@ -509,7 +509,7 @@ class SequencingRequest extends SeqNavRequest
509 509
             $this->currentItem = $this->targetItem;
510 510
             $this->updateTrack2004();
511 511
 
512
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_9_9;
512
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_9_9';
513 513
             return;
514 514
         } else {
515 515
             // Le item identifié est proposé pour livraison
@@ -531,7 +531,7 @@ class SequencingRequest extends SeqNavRequest
531 531
 
532 532
         // Vérifier que la session d'activité aie bien été initiée
533 533
         if (!$this->currentItem) {
534
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_10_1;
534
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_10_1';
535 535
             return;
536 536
         }
537 537
 
@@ -539,7 +539,7 @@ class SequencingRequest extends SeqNavRequest
539 539
         // i.e. qu'il n'est ni actif ni suspendu
540 540
         $mapTrackCurrentItem = $scorm2004MapTrackItemRepository->findOneBy(array('item_identifier' => $this->currentItem, 'scorm2004Track' => $this->scorm2004Track));
541 541
         if ($mapTrackCurrentItem->getIsActive() || $mapTrackCurrentItem->getIsSuspended()) {
542
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_10_2;
542
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_10_2';
543 543
             return;
544 544
         }
545 545
 
@@ -591,7 +591,7 @@ class SequencingRequest extends SeqNavRequest
591 591
 
592 592
         // Vérifier que la session d'activité aie bien été initiée
593 593
         if (!$this->currentItem) {
594
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_11_1;
594
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_11_1';
595 595
             return;
596 596
         }
597 597
 
@@ -599,7 +599,7 @@ class SequencingRequest extends SeqNavRequest
599 599
         $mapTrackCurrentItem = $scorm2004MapTrackItemRepository->findOneBy(array('item_identifier' => $this->currentItem, 'scorm2004Track' => $this->scorm2004Track));
600 600
         if ($mapTrackCurrentItem->getIsActive()) {
601 601
             $this->endSequencingSession = false;
602
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_11_2;
602
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_11_2';
603 603
             return;
604 604
         }
605 605
 
@@ -624,7 +624,7 @@ class SequencingRequest extends SeqNavRequest
624 624
     {
625 625
         // Vérifier que la session d'activité aie bien été initiée
626 626
         if (!$this->currentItem) {
627
-            $this->exception = _AGO_SCORM_EXCEPTION_SB_2_13_1;
627
+            $this->exception = '_AGO_SCORM_EXCEPTION_SB_2_13_1';
628 628
             return;
629 629
         }
630 630
 
@@ -717,7 +717,7 @@ class SequencingRequest extends SeqNavRequest
717 717
                     $response['traversalDirection'] = $traversalDirection;
718 718
                     return $response;
719 719
                 } else {
720
-                    $response['exception'] = _AGO_SCORM_EXCEPTION_SB_2_1_2;
720
+                    $response['exception'] = '_AGO_SCORM_EXCEPTION_SB_2_1_2';
721 721
                     return $response;
722 722
                 }
723 723
             }
@@ -727,7 +727,7 @@ class SequencingRequest extends SeqNavRequest
727 727
             // On ne peut pas remonter plus loin que la racine
728 728
             if (!$parent) {
729 729
                 $response['endSequencingSession'] = true;
730
-                $response['exception'] = _AGO_SCORM_EXCEPTION_SB_2_1_3;
730
+                $response['exception'] = '_AGO_SCORM_EXCEPTION_SB_2_1_3';
731 731
                 return $response;
732 732
             }
733 733
 
@@ -735,7 +735,7 @@ class SequencingRequest extends SeqNavRequest
735 735
                 // Arret de la procédure de séquencage si la direction n'est pas inversée et que l'on se trouve sur un item qui doit aller vers l'avant
736 736
                 if (!$reversedDirection && $parent && $this->getSequencingControl($parent, 'forwardOnly')) {
737 737
                     $response['endSequencingSession'] = true;
738
-                    $response['exception'] = _AGO_SCORM_EXCEPTION_SB_2_1_4;
738
+                    $response['exception'] = '_AGO_SCORM_EXCEPTION_SB_2_1_4';
739 739
                     return $response;
740 740
                 }
741 741
 
@@ -745,7 +745,7 @@ class SequencingRequest extends SeqNavRequest
745 745
                     return $this->getNextItemFromTreeTraversalFlow($parent, SCORM2004_TRAVERSE_BACKWARD, SCORM2004_TRAVERSE_UNKNOWN, false);
746 746
                 } elseif ($identifiedIndex === false) {
747 747
                     $response['endSequencingSession'] = true;
748
-                    $response['exception'] = _AGO_SCORM_EXCEPTION_SB_2_1_4;
748
+                    $response['exception'] = '_AGO_SCORM_EXCEPTION_SB_2_1_4';
749 749
                     return $response;
750 750
                 } else {
751 751
                     $response['item'] = $availableSiblings[$identifiedIndex - 1];
@@ -770,7 +770,7 @@ class SequencingRequest extends SeqNavRequest
770 770
                         return $response;
771 771
                     }
772 772
                 } else {
773
-                    $response['exception'] = _AGO_SCORM_EXCEPTION_SB_2_1_2;
773
+                    $response['exception'] = '_AGO_SCORM_EXCEPTION_SB_2_1_2';
774 774
                     return $response;
775 775
                 }
776 776
             }
@@ -800,7 +800,7 @@ class SequencingRequest extends SeqNavRequest
800 800
         if ($parent && !$this->getSequencingControl($parent, 'flow')) {
801 801
             $response['item'] = $identifiedItem;
802 802
             $response['deliverable'] = false;
803
-            $response['exception'] = _AGO_SCORM_EXCEPTION_SB_2_2_1;
803
+            $response['exception'] = '_AGO_SCORM_EXCEPTION_SB_2_2_1';
804 804
             return $response;
805 805
         }
806 806
 
@@ -829,7 +829,7 @@ class SequencingRequest extends SeqNavRequest
829 829
         if ($this->checkItem($identifiedItem)) {
830 830
             $response['item'] = $identifiedItem;
831 831
             $response['deliverable'] = false;
832
-            $response['exception'] = _AGO_SCORM_EXCEPTION_SB_2_2_2;
832
+            $response['exception'] = '_AGO_SCORM_EXCEPTION_SB_2_2_2';
833 833
             return $response;
834 834
         }
835 835
 
@@ -895,7 +895,7 @@ class SequencingRequest extends SeqNavRequest
895 895
         // On vérifie que les règle de séquencage du item ne valide pas l'action 'stop'
896 896
         if ($traversalDirection == SCORM2004_TRAVERSE_FORWARD) {
897 897
             if ($this->checkSequencingRules($identifiedItem, array(SCORM2004_SEQUENCING_PRE_STOP))) {
898
-                return _AGO_SCORM_EXCEPTION_SB_2_4_1;
898
+                return '_AGO_SCORM_EXCEPTION_SB_2_4_1';
899 899
             }
900 900
 
901 901
             return false;
@@ -908,12 +908,12 @@ class SequencingRequest extends SeqNavRequest
908 908
 
909 909
             if ($parent) {
910 910
                 if ($this->getSequencingControl($parent, 'forwardOnly')) {
911
-                    return _AGO_SCORM_EXCEPTION_SB_2_4_2;
911
+                    return '_AGO_SCORM_EXCEPTION_SB_2_4_2';
912 912
                 }
913 913
             } else {
914 914
                 // Si i l n'y a pas de parent, on se trouve à la racine
915 915
                 // impossible de remonter au delà de la racine
916
-                return _AGO_SCORM_EXCEPTION_SB_2_4_2;
916
+                return '_AGO_SCORM_EXCEPTION_SB_2_4_2';
917 917
             }
918 918
         }
919 919
 

+ 7
- 7
LearningModels/SCORM2004/SequencingNavigation/TerminationRequest.php View File

@@ -56,14 +56,14 @@ class TerminationRequest extends SeqNavRequest
56 56
         // Vérifier que la session d'activité aie déjà été initiée
57 57
         // sinon il n'y a rien à terminer
58 58
         if (!$this->currentItem) {
59
-            $this->exception = _AGO_SCORM_EXCEPTION_TB_2_3_1;
59
+            $this->exception = '_AGO_SCORM_EXCEPTION_TB_2_3_1';
60 60
             return;
61 61
         }
62 62
 
63 63
         // Dans le cas des requetes 'exit' et 'abandon', vérifier que le noeud courant ne soit pas déjà terminé
64 64
         $mapTrackCurrentItem = $scorm2004MapTrackItemRepository->findOneBy(array('item_identifier' => $this->currentItem, 'scorm2004Track' => $this->scorm2004Track));
65 65
         if (($this->request == self::TERMINATION_EXIT || $this->request == self::TERMINATION_ABANDON) && !$mapTrackCurrentItem->getIsActive()) {
66
-            $this->exception = _AGO_SCORM_EXCEPTION_TB_2_3_2;
66
+            $this->exception = '_AGO_SCORM_EXCEPTION_TB_2_3_2';
67 67
             return;
68 68
         }
69 69
 
@@ -90,7 +90,7 @@ class TerminationRequest extends SeqNavRequest
90 90
                 break;
91 91
 
92 92
             default:
93
-                $this->exception = _AGO_SCORM_EXCEPTION_TB_2_3_7;
93
+                $this->exception = '_AGO_SCORM_EXCEPTION_TB_2_3_7';
94 94
                 return;
95 95
         }
96 96
     }
@@ -134,7 +134,7 @@ class TerminationRequest extends SeqNavRequest
134 134
                     $this->updateTrack2004();
135 135
                     $processedExit = true;
136 136
                 } else {
137
-                    $this->exception = _AGO_SCORM_EXCEPTION_TB_2_3_4;
137
+                    $this->exception = '_AGO_SCORM_EXCEPTION_TB_2_3_4';
138 138
                     return;
139 139
                 }
140 140
             } else {
@@ -209,7 +209,7 @@ class TerminationRequest extends SeqNavRequest
209 209
             if ($currentParent) {
210 210
                 $this->suspendedItem = $currentParent;
211 211
             } else {
212
-                $this->exception = _AGO_SCORM_EXCEPTION_TB_2_3_3;
212
+                $this->exception = '_AGO_SCORM_EXCEPTION_TB_2_3_3';
213 213
                 return;
214 214
             }
215 215
         }
@@ -220,7 +220,7 @@ class TerminationRequest extends SeqNavRequest
220 220
         $path = $this->domScorm2004->getDirectPath($this->suspendedItem, $treeRoot);
221 221
 
222 222
         if (!$path) {
223
-            $this->exception = _AGO_SCORM_EXCEPTION_TB_2_3_5;
223
+            $this->exception = '_AGO_SCORM_EXCEPTION_TB_2_3_5';
224 224
             return;
225 225
         }
226 226
 
@@ -274,7 +274,7 @@ class TerminationRequest extends SeqNavRequest
274 274
         $path = $this->domScorm2004->getDirectPath($this->currentItem, $treeRoot);
275 275
 
276 276
         if (!$path) {
277
-            $this->exception = _AGO_SCORM_EXCEPTION_TB_2_3_6;
277
+            $this->exception = '_AGO_SCORM_EXCEPTION_TB_2_3_6';
278 278
             return;
279 279
         }
280 280
 

Loading…
Cancel
Save