34 $userId = intval($event->getParameter(
'userId'));
35 $contentTypeId = $event->getParameter(
'typeId');
36 $contentEntityId = intval($event->getParameter(
'entityId'));
40 || !in_array($contentTypeId, self::getContentTypeIdList())
41 || $contentEntityId <= 0
42 || !Loader::includeModule(
'im')
48 $subTagList = array();
50 if ($contentTypeId == self::CONTENT_TYPE_ID_POST)
52 $subTagList[] =
"BLOG|POST|".$contentEntityId.
'|'.$userId;
53 $subTagList[] =
"BLOG|POST_MENTION|".$contentEntityId.
'|'.$userId;
55 elseif ($contentTypeId == self::CONTENT_TYPE_ID_COMMENT)
57 $subTagList[] =
"BLOG|COMMENT|".$contentEntityId.
'|'.$userId;
58 $subTagList[] =
"BLOG|COMMENT_MENTION|".$contentEntityId.
'|'.$userId;
61 if (!empty($subTagList))
63 $CIMNotify = new \CIMNotify();
64 $CIMNotify->MarkNotifyReadBySubTag($subTagList);