1<?
php declare(strict_types=1);
49 if (isset(
$DIC[
'ilUser'])) {
56 $reminder =
new self();
57 $reminder->setUser(
$user);
58 $reminder->initWithUserContext();
71 (
float) $this->
getUser()->getPref(
'session_reminder_lead_time')
112 self::isGloballyActivated() &&
113 !$this->
getUser()->isAnonymous() &&
114 (
int) $this->
getUser()->getId() > 0 &&
115 (
int) $this->
getUser()->getPref(
'session_reminder_enabled') &&
123 public static function isGloballyActivated() : bool
132 $isSessionReminderEnabled = (bool)
$ilSetting->get(
'session_reminder_enabled',
false);
136 $isSessionReminderEnabled &&
An exception for terminatinating execution or to throw for unit testing.
setSecondsUntilExpiration(int $seconds_until_expiration)
calculateSecondsUntilReminder()
const SUGGESTED_LEAD_TIME
getSecondsUntilReminder()
setCurrentTime(int $current_time)
setSecondsUntilReminder(int $seconds_until_reminder)
isEnoughTimeLeftForReminder()
static createInstanceWithCurrentUserSession()
__construct()
ilSessionReminder constructor.
calculateSecondsUntilExpiration()
setLeadTime(int $lead_time)
$seconds_until_expiration
setExpirationTime(int $expiration_time)
getSecondsUntilExpiration()
const SESSION_HANDLING_FIXED
static getIdleValue($fixedMode=false)
Returns the idle time in seconds.