MonitorByEntityResponsible::processActivityBindingsChanges

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. MonitorByEntityResponsible
  4. processActivityBindingsChanges
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/monitor/monitorbyentityresponsible.php
  • Класс: Bitrix\Crm\Counter\Monitor\MonitorByEntityResponsible
  • Вызов: MonitorByEntityResponsible::processActivityBindingsChanges
protected function processActivityBindingsChanges(): void
{
	$affectedBindings = array_values($this->activitiesBindingsChanges);
	$entitiesData = $this->loadEntitiesDataForBindings($affectedBindings);
	foreach ($affectedBindings as $binding)
	{
		$entityData = $entitiesData[$binding->getEntityTypeId()][$binding->getEntityId()] ?? [];
		$this->resetCounters(
			$binding->getEntityTypeId(),
			EntityCounterType::getAll(true),
			$entityData['assignedBy'] ?? null,
			$entityData['categoryId'] ?? null,
		);
	}
}

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