46 if (isset($cache[$elementId]))
48 $logEntryFields = $cache[$elementId];
52 $res = self::$logTableClass::getList([
54 'SOURCE_ID' => $elementId,
57 'select' => [
'ID',
'TITLE',
'MESSAGE',
'TEXT_MESSAGE',
'PARAMS' ]
60 $logEntryFields = $res->fetch();
61 $cache[$elementId] = $logEntryFields;
64 if (empty($logEntryFields))
69 $this->
setLogId($logEntryFields[
'ID']);
73 $description = $logEntryFields[
'TEXT_MESSAGE'];
74 $description = preg_replace(
'/<script(.*?)>(.*?)<\/script>/is',
'', $description);
75 $description = \CTextParser::clearAllTags($description);
101 if (empty($this->sourceFields))
107 if (empty($logEntryFields))
112 $description = $logEntryFields[
'TEXT_MESSAGE'];
113 $description = preg_replace(
'/<script(.*?)>(.*?)<\/script>/is',
'', $description);
114 $description = \CTextParser::clearAllTags($description);
116 return truncateText(htmlspecialcharsback($description), 100);