Task::sendDeleteIntegrationEvent

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Task
  4. sendDeleteIntegrationEvent
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/control/task.php
  • Класс: BitrixTasksControlTask
  • Вызов: Task::sendDeleteIntegrationEvent
private function sendDeleteIntegrationEvent(bool $saveDelete): void
{
	$application = Application::getInstance();

	if (
		Loader::includeModule('im')
		&& method_exists(BitrixImV2ServiceMessenger::class, 'unregisterTask')
	)
	{
		$application && $application->addBackgroundJob(
			function () use ($saveDelete)
			{
				BitrixImV2ServiceLocator::getMessenger()->unregisterTask($this->getFullTaskData(), $saveDelete);
			}
		);
	}
}

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