PHP Класс Bitrix24\Task\CommentItem

Наследование: extends Bitrix24\Bitrix24Entity
Показать файл Открыть проект

Открытые методы

Метод Описание
add ( $taskId, $fields ) : array Creates a new comment to a task. Returns the identifier to the comment added.
delete ( $taskId, $commentItemId ) : array Delete a comment.
get ( $taskId, $commentItemId ) : array Returns comments to a task.
getList ( $taskId, $order, $filter ) : array Returns the list of comments to a task.
getManifest ( ) : array Returns the list of methods of the type task.commentitem.* and their description.
isActionAllowed ( $taskId, $commentItemId, $actionId ) : array Checks if the action is permitted.
update ( $taskId, $commentItemId, $fields ) : array Updates the comment data.

Описание методов

add() публичный Метод

Creates a new comment to a task. Returns the identifier to the comment added.
См. также: http://www.bitrixsoft.com/rest_help/tasks/task/commentitem/add.php
public add ( $taskId, $fields ) : array
$taskId integer Task identifier. Required parameter.
$fields array Data field array for a task (POST_MESSAGE). Required parameter.
Результат array

delete() публичный Метод

Delete a comment.
См. также: http://www.bitrixsoft.com/rest_help/tasks/task/commentitem/delete.php
public delete ( $taskId, $commentItemId ) : array
$taskId integer Task identifier. Required parameter.
$commentItemId integer Comment identifier. Required parameter.
Результат array

get() публичный Метод

Returns comments to a task.
См. также: http://www.bitrixsoft.com/rest_help/tasks/task/commentitem/get.php
public get ( $taskId, $commentItemId ) : array
$taskId integer Task identifier. Required parameter.
$commentItemId integer Comment identifier. Required parameter.
Результат array

getList() публичный Метод

Returns the list of comments to a task.
См. также: http://www.bitrixsoft.com/rest_help/tasks/task/commentitem/getlist.php
public getList ( $taskId, $order, $filter ) : array
$taskId integer
$order array
$filter array
Результат array

getManifest() публичный Метод

Returns the list of methods of the type task.commentitem.* and their description.
public getManifest ( ) : array
Результат array

isActionAllowed() публичный Метод

Checks if the action is permitted.
См. также: http://www.bitrixsoft.com/rest_help/tasks/task/checklistitem/isactionallowed.php
public isActionAllowed ( $taskId, $commentItemId, $actionId ) : array
$taskId integer Task identifier. Required parameter.
$commentItemId integer Comment identifier. Required parameter.
$actionId integer Identifier of the action to be checked: 1 - ACTION_COMMENT_ADD; 2 - ACTION_COMMENT_MODIFY; 3 - ACTION_COMMENT_REMOVE. Required parameter.
Результат array

update() публичный Метод

Updates the comment data.
См. также: http://www.bitrixsoft.com/rest_help/tasks/task/commentitem/update.php
public update ( $taskId, $commentItemId, $fields ) : array
$taskId integer Task identifier. Required parameter.
$commentItemId integer Comment identifier. Required parameter.
$fields array Data field array for a task (POST_MESSAGE). Required parameter.
Результат array