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
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'
public
mixed
COMMENT_SERVICE_DATA
= 'TASK_RESULT'
RESULT_ADD
public
mixed
RESULT_ADD
= 'RESULT'
RESULT_EDIT
public
mixed
RESULT_EDIT
= 'RESULT_EDIT'
RESULT_REMOVE
public
mixed
RESULT_REMOVE
= 'RESULT_REMOVE'
__construct()
public
__construct(int $userId) : mixed
Parameters
-
$userId
: int
-
close()
public
close(int $taskId) : void
Parameters
-
$taskId
: int
-
-
throws
-
ResultNotFoundException
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
public
createFromComment(int $commentId[, bool $checkServiceData = true ]) : Result|null
Parameters
-
$commentId
: int
-
-
$checkServiceData
: bool
= true
-
-
throws
-
ArgumentException
-
throws
-
ArgumentTypeException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
public
deleteByComment(int $commentId) : mixed
Parameters
-
$commentId
: int
-
-
throws
-
ArgumentException
-
throws
-
SqlQueryException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
deleteByTaskId()
public
deleteByTaskId(int $taskId) : mixed
Parameters
-
$taskId
: int
-
-
throws
-
SqlQueryException
public
static findResultComments(array<string|int, mixed> $taskIds) : array<string|int, mixed>
Parameters
-
$taskIds
: array<string|int, mixed>
-
-
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
-
-
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
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
Return values
array<string|int, mixed>
requireResult()
public
static requireResult(int $taskId) : bool
Parameters
-
$taskId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
public
updateFromComment(int $taskId, int $commentId) : Result|null
Parameters
-
$taskId
: int
-
-
$commentId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException