Task::prepareAddPullEventParameters

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Task
  4. prepareAddPullEventParameters
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/task.php
  • Класс: BitrixTasksControlTask
  • Вызов: Task::prepareAddPullEventParameters
private function prepareAddPullEventParameters(array $mergedFields): array
{
	$lastResult = ResultManager::getLastResult($this->taskId);

	return [
		'TASK_ID' => $this->taskId,
		'AFTER' => $mergedFields,
		'TS' => time(),
		'event_GUID' => $this->eventGuid,
		'params' => [
			'addCommentExists' => $this->isAddedComment,
		],
		'taskRequireResult' => ResultManager::requireResult($this->taskId) ? "Y" : "N",
		'taskHasResult' => $lastResult ? "Y" : "N",
		'taskHasOpenResult' => ($lastResult && (int) $lastResult['STATUS'] === ResultTable::STATUS_OPENED) ? "Y" : "N",
	];
}

Добавить комментарий