41 EventResult::UNDEFINED,
49 if (!in_array($eventId, self::getEventIdList()))
57 if (intval($itemId) > 0)
59 $logItem = \Bitrix\Socialnetwork\Item\Log::getById($itemId);
64 $logFieldList = $logItem->getFields();
66 $content .= LogIndex::getUserName($logFieldList[
"USER_ID"]).
" ";
68 if (!empty($logFieldList[
"TITLE"]))
70 $content .= \CTextParser::clearAllTags($logFieldList[
"TITLE"]).
" ";
74 !empty($logFieldList[
"PARAMS"])
75 && ($logEntryParams = unserialize($logFieldList[
"PARAMS"]))
76 && !empty($logEntryParams[
"ELEMENT_NAME"])
79 $content .= \CTextParser::clearAllTags($logEntryParams[
"ELEMENT_NAME"]);
83 !empty($logFieldList[
"MESSAGE"])
84 && Loader::includeModule(
'bizproc')
85 && ($documentData = \CBPStateService::GetStateDocumentId($logFieldList[
"MESSAGE"]))
86 && ($documentData[0] ==
'lists')
87 && (intval($documentData[2]) > 0)
88 && Loader::includeModule(
'iblock')
91 $elementObject = \CIBlockElement::getList(
93 array(
'ID' => intval($documentData[2])),
96 array(
'SEARCHABLE_CONTENT')
98 if ($element = $elementObject->fetch())
100 $content .=
" ".$element[
"SEARCHABLE_CONTENT"];
106 EventResult::SUCCESS,
108 'content' => $content,