Task::onBeforeUpdate

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Task
  4. onBeforeUpdate
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/task.php
  • Класс: BitrixTasksControlTask
  • Вызов: Task::onBeforeUpdate
private function onBeforeUpdate(array $fields): array
{
	$this->eventTaskData = $this->getFullTaskData();
	if (!$this->eventTaskData)
	{
		return $fields;
	}

	foreach (GetModuleEvents('tasks', 'OnBeforeTaskUpdate', true) as $arEvent)
	{
		if (ExecuteModuleEventEx($arEvent, array($this->taskId, &$fields, &$this->eventTaskData)) === false)
		{
			$message = $this->getApplicationError(Loc::getMessage('TASKS_UNKNOWN_UPDATE_ERROR'));
			throw new TaskUpdateException($message);
		}
	}

	return $fields;
}

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