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 448 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.
453 switch ($notification_type) {
464 $logger->debug(
'Determining subscribers for global forum notifications ...');
468 $logger->debug(
'Determining subscribers for thread notifications ...');
471 $recipients = array_unique(array_merge($frm_recipients, $thread_recipients));
472 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 484 of file class.ilForumAppEventListener.php.
References ilLogger\debug().
490 if (count($recipients)) {
491 $logger->debug(sprintf(
492 'Will send %s notification(s) to: %s',
494 implode(
', ', $recipients)
498 $mailNotification->setType($notificationTypes);
499 $mailNotification->setRecipients($recipients);
500 $mailNotification->send();
502 $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: