30 if($this->threshold > $this->mail_notify_orphaned )
32 $notify_days_before = $this->threshold - $this->mail_notify_orphaned;
36 $notify_days_before = 1;
39 $ts_delete = strtotime(
"+ ".$notify_days_before.
" days");
40 $this->ts_for_deletion = mktime(0, 0, 0,
date(
'm', $ts_delete),
date(
'd', $ts_delete),
date(
'Y', $ts_delete));
44 $folder_id = $folder_obj->getFolderId();
46 foreach($folder_obj->getOrphanedMailObjects() as $mail_obj)
48 $mail_id = $mail_obj->getMailId();
50 $ilDB->insert(
'mail_cron_orphaned',
array(
51 'mail_id' =>
array(
'integer', $mail_id),
52 'folder_id' =>
array(
'integer', $folder_id),
53 'ts_do_delete' =>
array(
'integer', $this->ts_for_deletion))
64 include_once
'./Services/Mail/classes/class.ilMailCronOrphanedMailsNotification.php';
77 foreach($this->collector->getCollection() as $collection_obj)
Class ilMailCronOrphanedMailsNotification.
ilMailCronOrphanedMailsNotificationCollectionObj
__construct(ilMailCronOrphanedMailsNotificationCollector $collector)
markAsNotified(ilMailCronOrphanedMailsNotificationCollectionObj $collection_obj)
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
ilMailCronOrphanedMailsNotificationCollector
Create styles array
The data for the language used.
ilMailCronOrphanedMailNotifier
sendMail(ilMailCronOrphanedMailsNotificationCollectionObj $collection_obj)