Contact::loadRequisite

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Contact
  4. loadRequisite
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/catalog/contractor/contact.php
  • Класс: Bitrix\Crm\Integration\Catalog\Contractor\Contact
  • Вызов: Contact::loadRequisite
private function loadRequisite(): void
{
	if ($this->requisiteLoaded)
	{
		return;
	}

	$this->requisite = EntityRequisite::getSingleInstance()->getList([
		'filter' => [
			'=ENTITY_TYPE_ID' => \CCrmOwnerType::Contact,
			'=ENTITY_ID' => $this->contact->getId(),
		]
	])->fetch();

	$this->requisiteLoaded = true;
}

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