Documentation

delete

$comment = \CTaskCommentItem(\CTaskItem $task, $commentId);
$comment->delete($fields);

Non-static method for deleting comment.

Parameters

Example


Example of use in REST

http://site.bx/rest/1/SECRETKEY/tasks.task.comments.delete?taskId=1&commentId=1

Comment crating event can be subscribed to:

RegisterModuleDependences('forum', 'OnCommentDelete', 'tasks', 'YourClass', 'OnCommentDelete');

RegisterModuleDependences('forum', 'OnAfterCommentDelete', 'tasks', 'YourClass', 'OnAfterCommentDelete');


© «Bitrix24», 2001-2024