Task::getIdsToDelete

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Task
  4. getIdsToDelete
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/tasks/task.php
  • Класс: Bitrix\Crm\Activity\Provider\Tasks\Task
  • Вызов: Task::getIdsToDelete
public function getIdsToDelete(Bindings $toRemove, int $taskId): array
{
	$timelineEntryIdsByTaskId = [];
	foreach ($toRemove as $identifier)
	{
		$query = TimelineTable::query();
		$query
			->setSelect(['ID', 'BINDINGS'])
			->where('BINDINGS.ENTITY_ID', $identifier->getEntityId())
			->where('BINDINGS.ENTITY_TYPE_ID', $identifier->getEntityTypeId())
			->where('TYPE_ID', TimelineType::TASK)
			->where('SOURCE_ID', $taskId)
		;
		$timelineEntryIdsByTaskId = $query->exec()->fetchCollection()->getIdList();
	}

	return $timelineEntryIdsByTaskId;
}

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