File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 5757$ data ['courseCode ' ] = $ _course ['path ' ];
5858$ data ['hotspots ' ] = [];
5959
60- error_log ("\$objExercise->results_disabled: {$ objExercise ->results_disabled }" );
61-
6260$ showScoreOptions = [
6361 RESULT_DISABLE_SHOW_SCORE_ONLY ,
6462 RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES ,
8987 ->getQuery ()
9088 ->getResult ();
9189
92- /** @var CQuizAnswer $hotspotAnswer */
93- foreach ($ result as $ hotspotAnswer ) {
90+ /** @var CQuizAnswer $hotSpotAnswer */
91+ foreach ($ result as $ hotSpotAnswer ) {
9492 $ hotSpot = [];
95- $ hotSpot ['id ' ] = $ hotspotAnswer ->getIid ();
96- $ hotSpot ['answer ' ] = $ hotspotAnswer ->getAnswer ();
93+ $ hotSpot ['id ' ] = $ hotSpotAnswer ->getIid ();
94+ $ hotSpot ['answer ' ] = $ hotSpotAnswer ->getAnswer ();
9795
98- switch ($ hotspotAnswer ->getHotspotType ()) {
96+ switch ($ hotSpotAnswer ->getHotspotType ()) {
9997 case 'square ' :
10098 $ hotSpot ['type ' ] = 'square ' ;
10199 break ;
113111 break ;
114112 }
115113
116- $ hotSpot ['coord ' ] = $ hotspotAnswer ->getHotspotCoordinates ();
117-
114+ $ hotSpot ['coord ' ] = $ hotSpotAnswer ->getHotspotCoordinates ();
118115 $ data ['hotspots ' ][] = $ hotSpot ;
119116 }
120117}
You can’t perform that action at this time.
0 commit comments