AgentContractRelationStorageStrategy::areItemsBound

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. AgentContractRelationStorageStrategy
  4. areItemsBound
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/catalog/contractor/agentcontractrelationstoragestrategy.php
  • Класс: Bitrix\Crm\Integration\Catalog\Contractor\AgentContractRelationStorageStrategy
  • Вызов: AgentContractRelationStorageStrategy::areItemsBound
public function areItemsBound(ItemIdentifier $parent, ItemIdentifier $child): bool
{
	if ($parent->getEntityTypeId() !== \CCrmOwnerType::AgentContractDocument)
	{
		return false;
	}

	return (new AgentContractContactCompanyBinding($child->getEntityTypeId()))->isDocumentBoundToEntity(
		$parent->getEntityId(),
		$child->getEntityId()
	);
}

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