1 <?php declare(strict_types=1);
49 if (isset($DIC[
'ilUser'])) {
50 $user = $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 &&
$seconds_until_expiration
static createInstanceWithCurrentUserSession()
calculateSecondsUntilExpiration()
setSecondsUntilExpiration(int $seconds_until_expiration)
setCurrentTime(int $current_time)
__construct()
ilSessionReminder constructor.
getSecondsUntilReminder()
isEnoughTimeLeftForReminder()
const SESSION_HANDLING_FIXED
setSecondsUntilReminder(int $seconds_until_reminder)
static getIdleValue($fixedMode=false)
Returns the idle time in seconds.
const SUGGESTED_LEAD_TIME
setExpirationTime(int $expiration_time)
setLeadTime(int $lead_time)
calculateSecondsUntilReminder()
getSecondsUntilExpiration()