...
Code Block | ||
---|---|---|
| ||
DATE_ADD(l4o.started, INTERVAL $time_int MINUTE) >= ? |
We “add” the time so that we can bring the start time to within the allowed period. I.e. add the allowed interval (for that kind of paper, which currently is only summative and progressive papers) to the student’s start time to see if it now falls within the official exam times, if they started earlier.
Selecting students
When selecting students you should use the $rolesjoin = \log::get_student_only()
it has optional parameters that let you change which table it joins with (by default it will join with users) and then use it like:
...