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
Definition at line 26 of file class.ilForumAppEventListener.php.
◆ delegateNotification()
Definition at line 503 of file class.ilForumAppEventListener.php.
References ilLogger\debug(), ilForumNotificationDataProvider\getForumNotificationRecipients(), ilForumNotificationDataProvider\getPostActivationRecipients(), ilForumNotificationDataProvider\getThreadNotificationRecipients(), ilForumMailNotification\TYPE_POST_ACTIVATION, and ilForumMailNotification\TYPE_POST_ANSWERED.
508 switch ($notification_type) {
510 self::sendNotification(
519 self::sendNotification($provider, $logger, $notification_type, $provider->getPostAnsweredRecipients());
524 $logger->
debug(
'Determining subscribers for global forum notifications ...');
528 $logger->
debug(
'Determining subscribers for thread notifications ...');
531 $recipients = array_unique(array_merge($frm_recipients, $thread_recipients));
532 self::sendNotification($provider, $logger, $notification_type, $recipients);
const TYPE_POST_ACTIVATION
getPostActivationRecipients()
getThreadNotificationRecipients(int $notification_type)
debug(string $a_message, array $a_context=array())
getForumNotificationRecipients(int $notification_type)
◆ getCachedReferences()
static ilForumAppEventListener::getCachedReferences |
( |
int |
$obj_id | ) |
|
|
staticprivate |
◆ sendNotification()
- Parameters
-
Definition at line 544 of file class.ilForumAppEventListener.php.
References ANONYMOUS_USER_ID, and ilLogger\debug().
550 if (count($recipients)) {
551 $logger->
debug(sprintf(
552 'Will send %s notification(s) to: %s',
554 implode(
', ', $recipients)
557 if (defined(
'ANONYMOUS_USER_ID')) {
558 $recipients = array_filter(
565 $mailNotification->setType($notificationTypes);
566 $mailNotification->setRecipients($recipients);
567 $mailNotification->send();
569 $logger->
debug(
'No recipients found, skipped notification delivery.');
debug(string $a_message, array $a_context=array())
◆ $ref_ids
array ilForumAppEventListener::$ref_ids = [] |
|
staticprotected |
The documentation for this class was generated from the following file: