37 static $wikiParser =
null;
40 EventResult::UNDEFINED,
48 if (!in_array($eventId, self::getEventIdList()))
56 if ((
int)($sourceId) > 0)
58 $element = \CWiki::getElementById($sourceId, array(
59 'CHECK_PERMISSIONS' =>
'N',
68 $wikiParser = new \CWikiParser();
71 $element[
'DETAIL_TEXT'] = $wikiParser->parse($element[
'DETAIL_TEXT'], $element[
'DETAIL_TEXT_TYPE'], array());
72 $element[
'DETAIL_TEXT'] = \CWikiParser::clear($element[
'DETAIL_TEXT']);
74 $content .= LogIndex::getUserName($element[
"CREATED_BY"]).
" ";
75 $content .= $element[
'NAME'].
" ";
76 $content .= \CTextParser::clearAllTags($element[
'DETAIL_TEXT']);
79 !empty($element[
'_TAGS'])
80 && is_array($element[
'_TAGS'])
84 foreach($element[
'_TAGS'] as $tag)
86 $tagList[] = $tag[
"NAME"];
87 $tagList[] =
'#'.$tag[
"NAME"];
92 $content .=
' '.implode(
' ', $tagList);
100 'content' => $content,