63 public static function createInstanceWithCurrentUserSession()
70 $reminder =
new self();
72 $reminder->initWithUserContext();
82 $this->
setLeadTime(max(self::MIN_LEAD_TIME, (
float) $this->
getUser()->getPref(
'session_reminder_lead_time')) * 60);
87 include_once
'./Services/Authentication/classes/class.ilSession.php';
125 self::isGloballyActivated() &&
126 $this->
getUser()->getId() != ANONYMOUS_USER_ID &&
127 (int) $this->
getUser()->getPref(
'session_reminder_enabled') &&
135 public static function isGloballyActivated()
144 (int)
$ilSetting->get(
'session_reminder_enabled', 0);
An exception for terminatinating execution or to throw for unit testing.
calculateSecondsUntilReminder()
const SUGGESTED_LEAD_TIME
getSecondsUntilReminder()
setSecondsUntilReminder($seconds_until_reminder)
__construct()
Constructor.
calculateSecondsUntilExpiration()
setExpirationTime($expiration_time)
setCurrentTime($current_time)
setSecondsUntilExpiration($seconds_until_expiration)
$seconds_until_expiration
isEnoughtTimeLeftForReminder()
getSecondsUntilExpiration()
const SESSION_HANDLING_FIXED
static getIdleValue($fixedMode=false)
Returns the idle time in seconds.