Remaining Lesson Timer
- Moodle 1.9–5.1
- 更新 2018-10-30
Block for displaying the elapsed and remaining time in a timed lesson
For all schools where a minimum time spent on-line is required (as it is in a classroom) a “Require time spent” for “Activity completion” is provided by the lesson module in moodle. This side block displays the elapsed and remaining time, to a tenth of a minute, in a lesson that uses “Require time spent”. It will display “Time Completed” after the time limit has been reached. See printscreens.
This side block will only run when called by lesson/view.php and only then, when the time limit is set [greater than 0]. In other words, it cannot be called directly nor even indirectly by any program other than lesson/view.php.
There is a “REFRESH TIMER” button with which students can refresh the page and update the timer if they wish (it is the same as clicking the browser’s refresh button).
The Remaining Lesson Timer code restricts its display to lesson/view.php therefore an administrator can simply have one instance that covers all courses [“Display throughout the entire site”] or a person can be more selective. In either case, it will show up in and only in the lesson/view.php pages where the time limit is set [greater than 0].
If an admin or teacher calls up a timed lesson/view.php page for editing (for example), then there are no {lesson_timer} records but the timer will simply display the required time to be spent and 0 for the actual time spent. See printscreen.
No records are ever written by this timer display nor is there any data entry. This block is display only.