63 public static function createInstanceWithCurrentUserSession()
72 $reminder =
new self();
74 $reminder->initWithUserContext();
84 $this->
setLeadTime(max(self::MIN_LEAD_TIME, (
float) $this->
getUser()->getPref(
'session_reminder_lead_time')) * 60);
89 include_once
'./Services/Authentication/classes/class.ilSession.php';
127 self::isGloballyActivated() &&
128 $this->
getUser()->getId() != ANONYMOUS_USER_ID &&
129 (int) $this->
getUser()->getPref(
'session_reminder_enabled') &&
137 public static function isGloballyActivated()
148 (int)
$ilSetting->get(
'session_reminder_enabled', 0);
$seconds_until_expiration
calculateSecondsUntilExpiration()
__construct()
Constructor.
getSecondsUntilReminder()
setExpirationTime($expiration_time)
setSecondsUntilReminder($seconds_until_reminder)
const SESSION_HANDLING_FIXED
setCurrentTime($current_time)
isEnoughtTimeLeftForReminder()
static getIdleValue($fixedMode=false)
Returns the idle time in seconds.
const SUGGESTED_LEAD_TIME
setSecondsUntilExpiration($seconds_until_expiration)
calculateSecondsUntilReminder()
getSecondsUntilExpiration()