ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (ilObjUser $user, ClockInterface $clock) | |
isActive () | |
setUser (ilObjUser $user) | |
getUser () | |
setCurrentTime (int $current_time) | |
getCurrentTime () | |
setExpirationTime (int $expiration_time) | |
getExpirationTime () | |
setLeadTime (int $lead_time) | |
getLeadTime () | |
setSecondsUntilExpiration (int $seconds_until_expiration) | |
getSecondsUntilExpiration () | |
setSecondsUntilReminder (int $seconds_until_reminder) | |
getSecondsUntilReminder () | |
Static Public Member Functions | |
static | byLoggedInUser () |
Data Fields | |
const | MIN_LEAD_TIME = 2 |
const | SUGGESTED_LEAD_TIME = 5 |
Private Member Functions | |
init () | |
calculateSecondsUntilExpiration () | |
calculateSecondsUntilReminder () | |
isEnoughTimeLeftForReminder () | |
Private Attributes | |
ClockInterface | $clock |
ilObjUser | $user |
int | $lead_time = self::SUGGESTED_LEAD_TIME |
int | $expiration_time = 0 |
int | $current_time = 0 |
int | $seconds_until_expiration = 0 |
int | $seconds_until_reminder = 0 |
Definition at line 24 of file class.ilSessionReminder.php.
ilSessionReminder::__construct | ( | ilObjUser | $user, |
ClockInterface | $clock | ||
) |
Definition at line 75 of file class.ilSessionReminder.php.
References $clock, $user, init(), and ILIAS\Repository\user().
|
static |
Definition at line 37 of file class.ilSessionReminder.php.
References $DIC, $ilSetting, $user, ILIAS\Repository\int(), ilSession\SESSION_HANDLING_FIXED, and ilObject\setId().
Referenced by ilGlobalPageTemplate\prepareBasicJS().
|
private |
Definition at line 99 of file class.ilSessionReminder.php.
References getCurrentTime(), getExpirationTime(), and setSecondsUntilExpiration().
Referenced by init().
|
private |
Definition at line 104 of file class.ilSessionReminder.php.
References getLeadTime(), getSecondsUntilExpiration(), and setSecondsUntilReminder().
Referenced by init().
ilSessionReminder::getCurrentTime | ( | ) |
Definition at line 144 of file class.ilSessionReminder.php.
References $current_time.
Referenced by calculateSecondsUntilExpiration().
ilSessionReminder::getExpirationTime | ( | ) |
Definition at line 156 of file class.ilSessionReminder.php.
References $expiration_time.
Referenced by calculateSecondsUntilExpiration().
ilSessionReminder::getLeadTime | ( | ) |
Definition at line 168 of file class.ilSessionReminder.php.
References $lead_time.
Referenced by calculateSecondsUntilReminder(), and isEnoughTimeLeftForReminder().
ilSessionReminder::getSecondsUntilExpiration | ( | ) |
Definition at line 180 of file class.ilSessionReminder.php.
References $seconds_until_expiration.
Referenced by calculateSecondsUntilReminder(), and isEnoughTimeLeftForReminder().
ilSessionReminder::getSecondsUntilReminder | ( | ) |
Definition at line 192 of file class.ilSessionReminder.php.
References $seconds_until_reminder.
ilSessionReminder::getUser | ( | ) |
Definition at line 132 of file class.ilSessionReminder.php.
References $user.
Referenced by init(), and isActive().
|
private |
Definition at line 83 of file class.ilSessionReminder.php.
References calculateSecondsUntilExpiration(), calculateSecondsUntilReminder(), ilSession\getIdleValue(), getUser(), setCurrentTime(), setExpirationTime(), and setLeadTime().
Referenced by __construct().
ilSessionReminder::isActive | ( | ) |
Definition at line 114 of file class.ilSessionReminder.php.
References ILIAS\Survey\Mode\getId(), getUser(), and isEnoughTimeLeftForReminder().
|
private |
Definition at line 109 of file class.ilSessionReminder.php.
References getLeadTime(), and getSecondsUntilExpiration().
Referenced by isActive().
ilSessionReminder::setCurrentTime | ( | int | $current_time | ) |
Definition at line 137 of file class.ilSessionReminder.php.
References $current_time.
Referenced by init().
ilSessionReminder::setExpirationTime | ( | int | $expiration_time | ) |
Definition at line 149 of file class.ilSessionReminder.php.
References $expiration_time.
Referenced by init().
ilSessionReminder::setLeadTime | ( | int | $lead_time | ) |
Definition at line 161 of file class.ilSessionReminder.php.
References $lead_time.
Referenced by init().
ilSessionReminder::setSecondsUntilExpiration | ( | int | $seconds_until_expiration | ) |
Definition at line 173 of file class.ilSessionReminder.php.
References $seconds_until_expiration.
Referenced by calculateSecondsUntilExpiration().
ilSessionReminder::setSecondsUntilReminder | ( | int | $seconds_until_reminder | ) |
Definition at line 185 of file class.ilSessionReminder.php.
References $seconds_until_reminder.
Referenced by calculateSecondsUntilReminder().
ilSessionReminder::setUser | ( | ilObjUser | $user | ) |
Definition at line 125 of file class.ilSessionReminder.php.
References $user, and ILIAS\Repository\user().
|
private |
Definition at line 29 of file class.ilSessionReminder.php.
Referenced by __construct().
|
private |
Definition at line 33 of file class.ilSessionReminder.php.
Referenced by getCurrentTime(), and setCurrentTime().
|
private |
Definition at line 32 of file class.ilSessionReminder.php.
Referenced by getExpirationTime(), and setExpirationTime().
|
private |
Definition at line 31 of file class.ilSessionReminder.php.
Referenced by getLeadTime(), and setLeadTime().
|
private |
Definition at line 34 of file class.ilSessionReminder.php.
Referenced by getSecondsUntilExpiration(), and setSecondsUntilExpiration().
|
private |
Definition at line 35 of file class.ilSessionReminder.php.
Referenced by getSecondsUntilReminder(), and setSecondsUntilReminder().
|
private |
Definition at line 30 of file class.ilSessionReminder.php.
Referenced by __construct(), byLoggedInUser(), getUser(), and setUser().
const ilSessionReminder::MIN_LEAD_TIME = 2 |
Definition at line 26 of file class.ilSessionReminder.php.
Referenced by ilSessionReminderCheck\__construct(), and ilPersonalSettingsGUI\initGeneralSettingsForm().
const ilSessionReminder::SUGGESTED_LEAD_TIME = 5 |
Definition at line 27 of file class.ilSessionReminder.php.
Referenced by ilPersonalSettingsGUI\initGeneralSettingsForm().