ilMailCronOrphanedMailNotifier
More...
◆ __construct()
ilMailCronOrphanedMailsNotifier constructor.
- Parameters
-
Definition at line 41 of file class.ilMailCronOrphanedMailsNotifier.php.
References $collector, $DIC, $job, $mail_notify_orphaned, $threshold, and ilDBConstants\T_INTEGER.
45 $this->db = $DIC->database();
52 $this->mark_as_notified_stmt = $this->db->prepareManip(
53 'INSERT INTO mail_cron_orphaned (mail_id, folder_id, ts_do_delete) VALUES (?, ?, ?)',
◆ markAsNotified()
- Parameters
-
Definition at line 61 of file class.ilMailCronOrphanedMailsNotifier.php.
References $i, $mail_notify_orphaned, and ilMailCronOrphanedMailsNotificationCollectionObj\getFolderObjects().
Referenced by processNotification().
63 if ($this->threshold > $this->mail_notify_orphaned) {
66 $notify_days_before = 1;
69 $ts_delete = strtotime(
"+ " . $notify_days_before .
" days");
70 $ts_for_deletion = mktime(0, 0, 0, date(
'm', $ts_delete), date(
'd', $ts_delete), date(
'Y', $ts_delete));
74 $folder_id = $folder_obj->getFolderId();
76 foreach ($folder_obj->getOrphanedMailObjects() as $mail_obj) {
77 $mail_id = $mail_obj->getMailId();
79 if (
$i > 0 &&
$i % self::NOTIFICATION_MARKER_PING_THRESHOLD === 0) {
84 $this->mark_as_notified_stmt,
85 [$mail_id, $folder_id, $ts_for_deletion]
◆ processNotification()
ilMailCronOrphanedMailsNotifier::processNotification |
( |
| ) |
|
◆ sendMail()
◆ $collector
ilMailCronOrphanedMailsNotifier::$collector |
|
protected |
◆ $db
ilMailCronOrphanedMailsNotifier::$db |
|
protected |
◆ $job
ilMailCronOrphanedMailsNotifier::$job |
|
private |
◆ $mail_notify_orphaned
ilMailCronOrphanedMailsNotifier::$mail_notify_orphaned = 0 |
|
protected |
◆ $mark_as_notified_stmt
ilMailCronOrphanedMailsNotifier::$mark_as_notified_stmt |
|
private |
◆ $threshold
ilMailCronOrphanedMailsNotifier::$threshold = 0 |
|
protected |
◆ MAIL_DELIVERY_PING_THRESHOLD
const ilMailCronOrphanedMailsNotifier::MAIL_DELIVERY_PING_THRESHOLD = 25 |
|
private |
◆ NOTIFICATION_MARKER_PING_THRESHOLD
const ilMailCronOrphanedMailsNotifier::NOTIFICATION_MARKER_PING_THRESHOLD = 250 |
|
private |
The documentation for this class was generated from the following file: