- Модуль: forum
- Путь к файлу: ~/bitrix/modules/forum/lib/comments/eventmanager.php
- Класс: BitrixForumCommentsEventManager
- Вызов: EventManager::onMessageIsIndexed
static function onMessageIsIndexed($id, array $message, array &$index)
{
if (!empty($message["PARAM1"]) && !empty($message["PARAM2"]))
return false;
if (isset($message["XML_ID"]) && !empty($message["XML_ID"]))
{
if (
($protoEntity = Entity::getEntityByXmlId($message["XML_ID"])) &&
(!is_null($protoEntity)) &&
(empty($protoEntity["moduleId"]) || Loader::includeModule($protoEntity["moduleId"])) &&
is_callable(array($protoEntity["className"], "onmessageisindexed"))
)
{
$b = call_user_func_array(
array($protoEntity["className"], "onmessageisindexed"),
array($id, $message, &$index)
);
if ($b === false)
return false;
}
}
return true;
}