29 lines
630 B
PHP
29 lines
630 B
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
/**
|
|
* Attendance configuration
|
|
*
|
|
* Attendance window: check-in is only allowed from (schedule start - open_before)
|
|
* until (schedule start + close_after). Outside this window → ABSENCE_WINDOW_CLOSED (no insert).
|
|
*/
|
|
class Attendance extends BaseConfig
|
|
{
|
|
/**
|
|
* Minutes before schedule start_time when attendance opens
|
|
*
|
|
* @var int
|
|
*/
|
|
public int $attendanceOpenBeforeMinutes = 5;
|
|
|
|
/**
|
|
* Minutes after schedule start_time when attendance closes
|
|
*
|
|
* @var int
|
|
*/
|
|
public int $attendanceCloseAfterMinutes = 15;
|
|
}
|