Forum listener.
More...
Forum listener.
Listens to events of other components.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 11 of file class.ilForumAppEventListener.php.
◆ delegateNotification()
- Parameters
-
Definition at line 445 of file class.ilForumAppEventListener.php.
References ilLogger\debug(), ilObjForumNotificationDataProvider\getForumNotificationRecipients(), ilObjForumNotificationDataProvider\getPostActivationRecipients(), ilObjForumNotificationDataProvider\getPostAnsweredRecipients(), ilObjForumNotificationDataProvider\getThreadNotificationRecipients(), ilForumMailNotification\TYPE_POST_ACTIVATION, and ilForumMailNotification\TYPE_POST_ANSWERED.
450 switch ($notification_type) {
461 $logger->debug(
'Determining subscribers for global forum notifications ...');
465 $logger->debug(
'Determining subscribers for thread notifications ...');
468 $recipients = array_unique(array_merge($frm_recipients, $thread_recipients));
469 self::sendNotification($provider, $logger, $notification_type, $recipients);
getForumNotificationRecipients()
const TYPE_POST_ACTIVATION
getThreadNotificationRecipients()
getPostAnsweredRecipients()
getPostActivationRecipients()
◆ getCachedReferences()
static ilForumAppEventListener::getCachedReferences |
( |
|
$obj_id | ) |
|
|
staticprivate |
◆ sendNotification()
- Parameters
-
Definition at line 481 of file class.ilForumAppEventListener.php.
References ilLogger\debug().
487 if (count($recipients)) {
488 $logger->debug(sprintf(
489 'Will send %s notification(s) to: %s',
491 implode(
', ', $recipients)
495 $mailNotification->setType($notificationTypes);
496 $mailNotification->setRecipients($recipients);
497 $mailNotification->send();
499 $logger->debug(
'No recipients found, skipped notification delivery.');
◆ $ref_ids
ilForumAppEventListener::$ref_ids = array() |
|
staticprotected |
The documentation for this class was generated from the following file: