File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,9 @@ public static function destroy()
120
120
}
121
121
122
122
/*
123
- * ArrayAccess
123
+ * ArrayAccess : bool
124
124
*/
125
- public function offsetExists ($ offset )
125
+ public function offsetExists ($ offset ): bool
126
126
{
127
127
return isset ($ _SESSION [$ offset ]);
128
128
}
@@ -133,19 +133,19 @@ public function offsetExists($offset)
133
133
*
134
134
* @param string $offset
135
135
*
136
- * @return mixed
136
+ * @return mixed (write offsetGet($offset): mixed on PHP 8 and & > )
137
137
*/
138
138
public function offsetGet ($ offset )
139
139
{
140
140
return self ::read ($ offset );
141
141
}
142
142
143
- public function offsetSet ($ offset , $ value )
143
+ public function offsetSet ($ offset , $ value ): void
144
144
{
145
145
self ::write ($ offset , $ value );
146
146
}
147
147
148
- public function offsetUnset ($ offset )
148
+ public function offsetUnset ($ offset ): void
149
149
{
150
150
unset($ _SESSION [$ offset ]);
151
151
}
Original file line number Diff line number Diff line change 308
308
}
309
309
}
310
310
311
- echo '<tr class=" ' .$ questionsGroupClass .$ breakClass .'"> ' ;
311
+ // Highlight the question that was just updated and scrool to it
312
+ if ($ row ['question_id ' ]==$ my_question_id_survey ) {
313
+ echo '<tr class=" ' .$ questionsGroupClass .$ breakClass .'" style="background-color:#A9DFBF;" > ' ;
314
+ echo '<a name="tocupdatelink" id="tocupdatelink" ></a> ' ;
315
+ echo '<script> ' ;
316
+ echo '$(document).ready(function() { ' ;
317
+ echo "var element_to_scroll_to = document.getElementById('tocupdatelink'); " ;
318
+ echo 'element_to_scroll_to.scrollIntoView(); ' ;
319
+ echo '}); ' ;
320
+ echo '</script> ' ;
321
+ } else {
322
+ echo '<tr class=" ' .$ questionsGroupClass .$ breakClass .'"> ' ;
323
+ }
312
324
echo ' <td> ' .$ question_counter .'</td> ' ;
313
325
echo ' <td> ' ;
314
326
You can’t perform that action at this time.
0 commit comments