19 declare(strict_types=1);
21 readonly
class ilSessionReminderGUI
31 public function populatePage(): void
33 if (!$this->session_reminder->isActive()) {
37 $this->page->addJavaScript(
'assets/js/SessionReminder.min.js');
39 $url =
'./sessioncheck.php?client_id=' .
CLIENT_ID .
'&lang=' . $this->
lng->getLangKey();
45 $this->session_reminder->getUser()->getId(),
46 $this->session_reminder->getUser()->getCreateDate()
49 $log_level = $this->logger_factory->getSettings()->getLevelByComponent(
'auth');
52 il.SessionReminder.init({
54 clientId:
"$client_id",
59 il.SessionReminder.run();
62 $this->page->addOnLoadCode($javascript);
__construct(Container $dic, ilPlugin $plugin)