Skip to content
Snippets Groups Projects
Commit 69135f2a authored by VESSILLER's avatar VESSILLER
Browse files

NEW ajout de notification apres tache planifiee

parent b4ae093f
No related branches found
No related tags found
No related merge requests found
......@@ -289,18 +289,18 @@ class ArchiveProcess extends TimedJob {
$this->_activityManager->publish($event);
// notification
// $this->_log('Notification add : archives processed');
// $notification = $this->_notificationManager->createNotification();
// $notification->setApp($this->_appName)
// ->setSubject('job_processed', ['nb_success' => $nbSuccess, 'nb_total' => $nbTotal])
// ->setObject('dematpayslip_process', $dateTimeNow->getTimestamp())
// ->setUser($userId);
// //->setIcon($this->_urlGenerator->getAbsoluteURL($this->_urlGenerator->imagePath($this->_appName, 'folder.png')))
// //->setLink($folderLink);
// if ($this->_notificationManager->getCount($notification) === 0) {
// $notification->setDateTime(new DateTime());
// $this->_notificationManager->notify($notification);
// }
$this->_log('Notification add : archives processed');
$notification = $this->_notificationManager->createNotification();
$notification->setApp($this->_appName)
->setSubject('job_processed', ['nb_success' => $nbSuccess, 'nb_total' => $nbTotal])
->setObject('dematpayslip_process', $dateTimeNow->getTimestamp())
->setUser($userId);
//->setIcon($this->_urlGenerator->getAbsoluteURL($this->_urlGenerator->imagePath($this->_appName, 'folder.png')))
//->setLink($folderLink);
if ($this->_notificationManager->getCount($notification) === 0) {
$notification->setDateTime(new DateTime());
$this->_notificationManager->notify($notification);
}
}
}
$this->_log('Archives process : End');
......
......@@ -302,18 +302,18 @@ class IndexationProcess extends TimedJob {
$this->_activityManager->publish($event);
// notification
// $this->_log('Notification add : indexation processed');
// $notification = $this->_notificationManager->createNotification();
// $notification->setApp($this->_appName)
// ->setSubject('job_processed', ['nb_success' => $nbSuccess, 'nb_total' => $nbTotal])
// ->setObject('dematpayslip_process', $dateTimeNow->getTimestamp())
// ->setUser($userId);
// //->setIcon($this->_urlGenerator->getAbsoluteURL($this->_urlGenerator->imagePath($this->_appName, 'folder.png')))
// //->setLink($folderLink);
// if ($this->_notificationManager->getCount($notification) === 0) {
// $notification->setDateTime(new DateTime());
// $this->_notificationManager->notify($notification);
// }
$this->_log('Notification add : indexation processed');
$notification = $this->_notificationManager->createNotification();
$notification->setApp($this->_appName)
->setSubject('job_processed', ['nb_success' => $nbSuccess, 'nb_total' => $nbTotal])
->setObject('dematpayslip_process', $dateTimeNow->getTimestamp())
->setUser($userId);
//->setIcon($this->_urlGenerator->getAbsoluteURL($this->_urlGenerator->imagePath($this->_appName, 'folder.png')))
//->setLink($folderLink);
if ($this->_notificationManager->getCount($notification) === 0) {
$notification->setDateTime(new DateTime());
$this->_notificationManager->notify($notification);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment