Bitrix API

ResultManager

Table of Contents

Constants

COMMAND_CREATE  = 'task_result_create'
COMMAND_DELETE  = 'task_result_delete'
COMMAND_UPDATE  = 'task_result_update'
COMMENT_SERVICE_DATA  = 'TASK_RESULT'
RESULT_ADD  = 'RESULT'
RESULT_EDIT  = 'RESULT_EDIT'
RESULT_REMOVE  = 'RESULT_REMOVE'

Methods

__construct()  : mixed
close()  : void
createFromComment()  : Result|null
deleteByComment()  : mixed
deleteByTaskId()  : mixed
findResultComments()  : array<string|int, mixed>
getLastResult()  : array<string|int, mixed>|null
getTaskResults()  : array<string|int, mixed>
requireResult()  : bool
updateFromComment()  : Result|null

Constants

COMMAND_CREATE

public mixed COMMAND_CREATE = 'task_result_create'

COMMAND_DELETE

public mixed COMMAND_DELETE = 'task_result_delete'

COMMAND_UPDATE

public mixed COMMAND_UPDATE = 'task_result_update'

COMMENT_SERVICE_DATA

public mixed COMMENT_SERVICE_DATA = 'TASK_RESULT'

Methods

__construct()

public __construct(int $userId) : mixed
Parameters
$userId : int

close()

public close(int $taskId) : void
Parameters
$taskId : int
Tags
throws
ResultNotFoundException
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException

createFromComment()

public createFromComment(int $commentId[, bool $checkServiceData = true ]) : Result|null
Parameters
$commentId : int
$checkServiceData : bool = true
Tags
throws
ArgumentException
throws
ArgumentTypeException
throws
ObjectPropertyException
throws
SystemException
Return values
Result|null

deleteByComment()

public deleteByComment(int $commentId) : mixed
Parameters
$commentId : int
Tags
throws
ArgumentException
throws
SqlQueryException
throws
ObjectPropertyException
throws
SystemException

findResultComments()

public static findResultComments(array<string|int, mixed> $taskIds) : array<string|int, mixed>
Parameters
$taskIds : array<string|int, mixed>
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

getLastResult()

public static getLastResult(int $taskId) : array<string|int, mixed>|null
Parameters
$taskId : int
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>|null

getTaskResults()

public getTaskResults(int $taskId) : array<string|int, mixed>
Parameters
$taskId : int
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

requireResult()

public static requireResult(int $taskId) : bool
Parameters
$taskId : int
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
bool

updateFromComment()

public updateFromComment(int $taskId, int $commentId) : Result|null
Parameters
$taskId : int
$commentId : int
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
Result|null

        
On this page

Search results