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 491 of file class.ilForumAppEventListener.php.
References ilLogger\debug(), ilForumNotificationDataProvider\getForumNotificationRecipients(), ilForumNotificationDataProvider\getPostActivationRecipients(), ilForumNotificationDataProvider\getThreadNotificationRecipients(), ilForumMailNotification\TYPE_POST_ACTIVATION, and ilForumMailNotification\TYPE_POST_ANSWERED.
496 switch ($notification_type) {
498 self::sendNotification(
507 self::sendNotification($provider, $logger, $notification_type, $provider->getPostAnsweredRecipients());
512 $logger->
debug(
'Determining subscribers for global forum notifications ...');
516 $logger->
debug(
'Determining subscribers for thread notifications ...');
519 $recipients = array_unique(array_merge($frm_recipients, $thread_recipients));
520 self::sendNotification($provider, $logger, $notification_type, $recipients);
const TYPE_POST_ACTIVATION
getPostActivationRecipients()
getThreadNotificationRecipients(int $notification_type)
getForumNotificationRecipients(int $notification_type)
debug(string $message, array $context=[])
◆ getCachedReferences()
static ilForumAppEventListener::getCachedReferences |
( |
int |
$obj_id | ) |
|
|
staticprivate |
◆ sendNotification()
- Parameters
-
Definition at line 529 of file class.ilForumAppEventListener.php.
References ANONYMOUS_USER_ID, and ilLogger\debug().
535 if ($recipients !== []) {
536 $logger->
debug(sprintf(
537 'Will send %s notification(s) to: %s',
539 implode(
', ', $recipients)
542 if (defined(
'ANONYMOUS_USER_ID')) {
543 $recipients = array_filter(
550 $mailNotification->setType($notificationTypes);
551 $mailNotification->setRecipients($recipients);
552 $mailNotification->send();
554 $logger->
debug(
'No recipients found, skipped notification delivery.');
debug(string $message, array $context=[])
◆ $ref_ids
array ilForumAppEventListener::$ref_ids = [] |
|
staticprotected |
The documentation for this class was generated from the following file: