4 include_once
'Services/Mail/classes/class.ilMailNotification.php';
22 "INSERT INTO " . self::TABLE_NAME .
" (usr_id, ts) VALUES (%s, %s)",
36 include_once
'Services/User/classes/class.ilCronDeleteInactiveUserReminderMailNotification.php';
38 $mail->setRecipients(array($user));
39 $mail->setAdditionalInformation(
42 "days" => $reminderTime,
43 "date" => $time_frame_for_deletion
47 self::mailSent($user->
getId());
55 $query =
"SELECT usr_id,ts FROM " . self::TABLE_NAME;
65 $lastReminderSent = (int)
$row->ts;
66 if ($lastLoginUnixtime >= $lastReminderSent) {
67 self::removeSingleUserFromTable(
$row->usr_id);
77 $query =
"SELECT ts FROM " . self::TABLE_NAME .
" WHERE usr_id = %s";
80 if (
$row->ts == null) {
81 self::sendReminder($user, $reminderTime, $time_frame_for_deletion);
92 $ilDB->manipulate(
"DELETE FROM " . self::TABLE_NAME);
100 $query =
"DELETE FROM " . self::TABLE_NAME .
" WHERE usr_id = %s";
101 $ilDB->manipulateF(
$query, array(
'integer'), array($usr_id));
static removeEntriesFromTableIfLastLoginIsNewer()
static sendReminder(ilObjUser $user, $reminderTime, $time_frame_for_deletion)
static checkIfReminderMailShouldBeSend(ilObjUser $user, $reminderTime, $time_frame_for_deletion)
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
foreach($_POST as $key=> $value) $res
getId()
get object id public
static removeSingleUserFromTable($usr_id)
static _lookupLastLogin($a_user_id)
lookup last login