63 public static function createInstanceWithCurrentUserSession()
70 $reminder =
new self();
71 $reminder->setUser($ilUser);
72 $reminder->initWithUserContext();
80 protected function initWithUserContext()
87 $this->
setLeadTime(max(self::MIN_LEAD_TIME, (
float)$this->
getUser()->getPref(
'session_reminder_lead_time')) * 60);
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);