ActivitiesChangesCollection::getAffectedBindings

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. ActivitiesChangesCollection
  4. getAffectedBindings
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/monitor/activitieschangescollection.php
  • Класс: Bitrix\Crm\Counter\Monitor\ActivitiesChangesCollection
  • Вызов: ActivitiesChangesCollection::getAffectedBindings
public function getAffectedBindings(): array
{
	$result = [];
	/** @var $activityChange ActivityChange */
	foreach ($this->values as $activityChange)
	{
		foreach ($activityChange->getOldBindings() as $binding)
		{
			$result[$binding->getHash()] = $binding;
		}
		foreach ($activityChange->getNewBindings() as $binding)
		{
			$result[$binding->getHash()] = $binding;
		}
	}

	return array_values($result);
}

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