19declare(strict_types=1);
48 if (isset(
$DIC[
'ilUser'])) {
57 (
new DataFactory())->clock()->utc(),
67 (
int) $this->
settings->get(
'session_reminder_lead_time')
76 if ($lead_time !== self::LEAD_TIME_DISABLED &&
77 ($lead_time < $min_value || $lead_time > $max_value)) {
81 return $lead_time !== self::LEAD_TIME_DISABLED ? min(
95 'session_reminder_lead_time'
104 return max(self::MIN_LEAD_TIME, ($expires / 60) - 1);
138 !$this->
getUser()->isAnonymous() &&
139 $this->
getUser()->getId() > 0 &&
static _lookupPref(int $a_usr_id, string $a_keyword)
setSecondsUntilExpiration(int $seconds_until_expiration)
calculateSecondsUntilReminder()
int $seconds_until_expiration
getSecondsUntilReminder()
setCurrentTime(int $current_time)
setSecondsUntilReminder(int $seconds_until_reminder)
isEnoughTimeLeftForReminder()
const int LEAD_TIME_DISABLED
calculateSecondsUntilExpiration()
const int SUGGESTED_LEAD_TIME
setLeadTime(int $lead_time)
getGlobalSessionReminderLeadTime()
buildValidLeadTime(int $lead_time)
int $seconds_until_reminder
setExpirationTime(int $expiration_time)
__construct(private ilObjUser $user, private readonly ClockInterface $clock, private readonly ilSetting $settings)
getSecondsUntilExpiration()
static getIdleValue()
Returns the idle time in seconds.
static getSessionExpireValue()
Returns the session expiration value.