Метод onAfterAdd

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 560–1028
~/bitrix/modulestasks/lib/integration/forum/task/comment.php

Исходный код

PHP
public static

Сигнатура метода

public static function onAfterAdd($entityType, $taskId, $arData)

Описание

Event callback for comment add. Fires on forum::OnAfterCommentAdd This is not a part of public API. This function is for internal use only. This function WILL send notifications in case of comment add through bitrix:forum.comments component Also, socialnetwork`s Live Feed uses modern forum API now to store comments for task-related block. This API subsequently fires forum::OnAfterCommentAdd, and, as a result, it comes to this function. So we got an isomorphic handler relative to the comment feed and Live Feed.

Параметры

3
Имя Тип По умолчанию Флаги
$entityType - -
-
$taskId - -
-
$arData - -
-