ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Public Member Functions | |
__construct (private ilObjUser $user, private ClockInterface $clock, private ilSetting $settings) | |
getGlobalSessionReminderLeadTime () | |
getEffectiveLeadTime () | |
getMaxPossibleLeadTime () | |
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 | LEAD_TIME_DISABLED = 0 |
const | MIN_LEAD_TIME = 1 |
const | SUGGESTED_LEAD_TIME = 5 |
Private Member Functions | |
buildValidLeadTime (int $lead_time) | |
init () | |
calculateSecondsUntilExpiration () | |
calculateSecondsUntilReminder () | |
isEnoughTimeLeftForReminder () | |
Private Attributes | |
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 | ( | private ilObjUser | $user, |
private ClockInterface | $clock, | ||
private ilSetting | $settings | ||
) |
Definition at line 36 of file class.ilSessionReminder.php.
References init().
|
private |
Definition at line 71 of file class.ilSessionReminder.php.
References getMaxPossibleLeadTime().
Referenced by getEffectiveLeadTime(), and getGlobalSessionReminderLeadTime().
|
static |
Definition at line 44 of file class.ilSessionReminder.php.
References $DIC.
Referenced by ilUserFieldSettingsTableGUI\fillRow(), ilObjUserGUI\getValues(), ilObjUserGUI\initForm(), ilPersonalSettingsGUI\initGeneralSettingsForm(), and ilGlobalPageTemplate\prepareBasicJS().
|
private |
Definition at line 120 of file class.ilSessionReminder.php.
References getCurrentTime(), getExpirationTime(), and setSecondsUntilExpiration().
Referenced by init().
|
private |
Definition at line 125 of file class.ilSessionReminder.php.
References getLeadTime(), getSecondsUntilExpiration(), and setSecondsUntilReminder().
Referenced by init().
ilSessionReminder::getCurrentTime | ( | ) |
Definition at line 163 of file class.ilSessionReminder.php.
References $current_time.
Referenced by calculateSecondsUntilExpiration().
ilSessionReminder::getEffectiveLeadTime | ( | ) |
Definition at line 90 of file class.ilSessionReminder.php.
References ilObjUser\_lookupPref(), buildValidLeadTime(), getGlobalSessionReminderLeadTime(), ILIAS\Survey\Mode\getId(), and getUser().
Referenced by init(), and isActive().
ilSessionReminder::getExpirationTime | ( | ) |
Definition at line 175 of file class.ilSessionReminder.php.
References $expiration_time.
Referenced by calculateSecondsUntilExpiration().
ilSessionReminder::getGlobalSessionReminderLeadTime | ( | ) |
Definition at line 64 of file class.ilSessionReminder.php.
References buildValidLeadTime(), and ILIAS\Repository\settings().
Referenced by getEffectiveLeadTime().
ilSessionReminder::getLeadTime | ( | ) |
Definition at line 187 of file class.ilSessionReminder.php.
References $lead_time.
Referenced by calculateSecondsUntilReminder(), and isEnoughTimeLeftForReminder().
ilSessionReminder::getMaxPossibleLeadTime | ( | ) |
Definition at line 100 of file class.ilSessionReminder.php.
References ilSession\getSessionExpireValue().
Referenced by buildValidLeadTime().
ilSessionReminder::getSecondsUntilExpiration | ( | ) |
Definition at line 199 of file class.ilSessionReminder.php.
References $seconds_until_expiration.
Referenced by calculateSecondsUntilReminder(), and isEnoughTimeLeftForReminder().
ilSessionReminder::getSecondsUntilReminder | ( | ) |
Definition at line 211 of file class.ilSessionReminder.php.
References $seconds_until_reminder.
ilSessionReminder::getUser | ( | ) |
Definition at line 151 of file class.ilSessionReminder.php.
Referenced by getEffectiveLeadTime(), and isActive().
|
private |
Definition at line 107 of file class.ilSessionReminder.php.
References calculateSecondsUntilExpiration(), calculateSecondsUntilReminder(), getEffectiveLeadTime(), ilSession\getIdleValue(), setCurrentTime(), setExpirationTime(), and setLeadTime().
Referenced by __construct().
ilSessionReminder::isActive | ( | ) |
Definition at line 135 of file class.ilSessionReminder.php.
References getEffectiveLeadTime(), getUser(), and isEnoughTimeLeftForReminder().
|
private |
Definition at line 130 of file class.ilSessionReminder.php.
References getLeadTime(), and getSecondsUntilExpiration().
Referenced by isActive().
ilSessionReminder::setCurrentTime | ( | int | $current_time | ) |
Definition at line 156 of file class.ilSessionReminder.php.
References $current_time.
Referenced by init().
ilSessionReminder::setExpirationTime | ( | int | $expiration_time | ) |
Definition at line 168 of file class.ilSessionReminder.php.
References $expiration_time.
Referenced by init().
ilSessionReminder::setLeadTime | ( | int | $lead_time | ) |
Definition at line 180 of file class.ilSessionReminder.php.
References $lead_time.
Referenced by init().
ilSessionReminder::setSecondsUntilExpiration | ( | int | $seconds_until_expiration | ) |
Definition at line 192 of file class.ilSessionReminder.php.
References $seconds_until_expiration.
Referenced by calculateSecondsUntilExpiration().
ilSessionReminder::setSecondsUntilReminder | ( | int | $seconds_until_reminder | ) |
Definition at line 204 of file class.ilSessionReminder.php.
References $seconds_until_reminder.
Referenced by calculateSecondsUntilReminder().
ilSessionReminder::setUser | ( | ilObjUser | $user | ) |
Definition at line 144 of file class.ilSessionReminder.php.
References ILIAS\Repository\user().
|
private |
Definition at line 32 of file class.ilSessionReminder.php.
Referenced by getCurrentTime(), and setCurrentTime().
|
private |
Definition at line 31 of file class.ilSessionReminder.php.
Referenced by getExpirationTime(), and setExpirationTime().
|
private |
Definition at line 30 of file class.ilSessionReminder.php.
Referenced by getLeadTime(), and setLeadTime().
|
private |
Definition at line 33 of file class.ilSessionReminder.php.
Referenced by getSecondsUntilExpiration(), and setSecondsUntilExpiration().
|
private |
Definition at line 34 of file class.ilSessionReminder.php.
Referenced by getSecondsUntilReminder(), and setSecondsUntilReminder().
const ilSessionReminder::LEAD_TIME_DISABLED = 0 |
Definition at line 26 of file class.ilSessionReminder.php.
Referenced by ilUserFieldSettingsTableGUI\fillRow(), ILIAS\User\UserGUIRequest\getDefaultSessionReminder(), ilObjUserGUI\initForm(), and ilPersonalSettingsGUI\initGeneralSettingsForm().
const ilSessionReminder::MIN_LEAD_TIME = 1 |
Definition at line 27 of file class.ilSessionReminder.php.
const ilSessionReminder::SUGGESTED_LEAD_TIME = 5 |
Definition at line 28 of file class.ilSessionReminder.php.
Referenced by ilObjUserGUI\initForm(), ilPersonalSettingsGUI\initGeneralSettingsForm(), and ILIAS\User\Setup\DBUpdateSteps10\step_3().