19declare(strict_types=1);
41 if (isset(
$DIC[
'ilUser'])) {
50 (
new DataFactory())->clock()->utc()
56 public static function isGloballyActivated(): bool
63 $isSessionReminderEnabled = (bool)
$ilSetting->get(
'session_reminder_enabled',
null);
65 'session_handling_type',
70 $isSessionReminderEnabled &&
83 private function init(): void
88 (
float) $this->
getUser()->getPref(
'session_reminder_lead_time')
117 self::isGloballyActivated() &&
118 !$this->
getUser()->isAnonymous() &&
120 (
int) $this->
getUser()->getPref(
'session_reminder_enabled') &&
setSecondsUntilExpiration(int $seconds_until_expiration)
calculateSecondsUntilReminder()
const SUGGESTED_LEAD_TIME
int $seconds_until_expiration
getSecondsUntilReminder()
setCurrentTime(int $current_time)
setSecondsUntilReminder(int $seconds_until_reminder)
__construct(ilObjUser $user, ClockInterface $clock)
isEnoughTimeLeftForReminder()
calculateSecondsUntilExpiration()
setLeadTime(int $lead_time)
int $seconds_until_reminder
setExpirationTime(int $expiration_time)
getSecondsUntilExpiration()
const SESSION_HANDLING_FIXED
static getIdleValue(bool $fixedMode=false)
Returns the idle time in seconds.