- Модуль: forum
- Путь к файлу: ~/bitrix/modules/forum/lib/comments/feed.php
- Класс: BitrixForumCommentsFeed
- Вызов: Feed::send
public function send($id, array $params)
{
ob_start();
try{
global $APPLICATION;
$APPLICATION->IncludeComponent(
"bitrix:forum.comments",
"bitrix24",
[
"FORUM_ID" => $this->getForum()["ID"],
"ENTITY_TYPE" => $this->getEntity()->getType(),
"ENTITY_ID" => $this->getEntity()->getId(),
"ENTITY_XML_ID" => $this->getEntity()->getXmlId(),
"MID" => $id,
"ACTION" => "SEND",
"SHOW_POST_FORM" => "N"] + $params + [
"SHOW_RATING" => "Y",
"URL_TEMPLATES_PROFILE_VIEW" => "",
"CHECK_ACTIONS" => "N",
"RECIPIENT_ID" => $this->getUser()->getId()],
null,
array("HIDE_ICONS" => "Y")
);
$result = true;
}
catch (Throwable $e)
{
$result = false;
}
ob_get_clean();
return $result;
}