• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/dynamic.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Dynamic
  • Вызов: Dynamic::getContacts
public function getContacts(): array
{
	if ($this->contacts === null)
	{
		$this->contacts = [];
		if ($this->isLoaded())
		{
			$contactIds = EntityContactTable::getContactIds($this->getCrmOwnerType(), (int)$this->source);
			foreach($contactIds as $contactId)
			{
				$contact = DataProviderManager::getInstance()->getDataProvider(
					Contact::class,
					$contactId, [
						'isLightMode' => true,
						'DISABLE_MY_COMPANY' => true,
					],
					$this
				);
				$this->contacts[] = $contact;
			}
		}
	}

	return $this->contacts;
}