19 declare(strict_types=1);
41 if (isset($DIC[
'ilUser'])) {
56 public static function isGloballyActivated():
bool 63 $isSessionReminderEnabled = (bool)
$ilSetting->get(
'session_reminder_enabled', null);
65 'session_handling_type',
70 $isSessionReminderEnabled &&
71 $sessionHandlingMode === ilSession::SESSION_HANDLING_FIXED
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') &&
calculateSecondsUntilExpiration()
setSecondsUntilExpiration(int $seconds_until_expiration)
setCurrentTime(int $current_time)
__construct(ilObjUser $user, ClockInterface $clock)
getSecondsUntilReminder()
isEnoughTimeLeftForReminder()
const SESSION_HANDLING_FIXED
setSecondsUntilReminder(int $seconds_until_reminder)
const SUGGESTED_LEAD_TIME
int $seconds_until_expiration
static getIdleValue(bool $fixedMode=false)
Returns the idle time in seconds.
setExpirationTime(int $expiration_time)
setLeadTime(int $lead_time)
calculateSecondsUntilReminder()
int $seconds_until_reminder
getSecondsUntilExpiration()