Esempio n. 1
0
 public static function OnForumCommentIMNotify($entityType, $eventID, $arComment)
 {
     if ($entityType != "TK") {
         return;
     }
     if (!CModule::IncludeModule("im")) {
         return;
     }
     CCalendarLiveFeed::NotifyComment($eventID, $arComment);
 }
Esempio n. 2
0
 public static function OnForumCommentIMNotify($entityType, $eventID, $arComment)
 {
     if ($entityType != "EV" || !CModule::IncludeModule("im")) {
         return;
     }
     if (isset($arComment["MESSAGE_ID"]) && intval($arComment["MESSAGE_ID"]) > 0 && ($arCalendarEvent = CCalendarEvent::GetById($eventID))) {
         $arComment["URL"] = CCalendar::GetPath("user", $arCalendarEvent["OWNER_ID"], true);
         $arComment["URL"] .= (strpos($arComment["URL"], "?") === false ? "?" : "&") . "EVENT_ID=" . $arCalendarEvent["ID"] . "&MID=" . intval($arComment["MESSAGE_ID"]);
     }
     CCalendarLiveFeed::NotifyComment($eventID, $arComment);
 }