| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | private function generateHeader(Exercise $objExercise, User $student, TrackEExercises $trackExe): string |
||
| 15 | { |
||
| 16 | $startDate = api_get_local_time($trackExe->getStartDate(), null, null, true, true, true); |
||
| 17 | $endDate = api_get_local_time($trackExe->getExeDate(), null, null, true, true, true); |
||
| 18 | |||
| 19 | return Display::page_subheader2($objExercise->selectTitle()) |
||
| 20 | .Display::tag('p', $student->getCompleteNameWithUsername(), ['class' => 'lead']) |
||
| 21 | .Display::tag( |
||
| 22 | 'p', |
||
| 23 | sprintf(get_lang('QuizRemindStartDate'), $startDate) |
||
| 24 | .sprintf(get_lang('QuizRemindEndDate'), $endDate) |
||
| 25 | .sprintf(get_lang('QuizRemindDuration'), api_format_time($trackExe->getExeDuration())) |
||
| 26 | ); |
||
| 29 |