CAllCrmLead::getCompatibilityAdapter

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmLead
  4. getCompatibilityAdapter
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_lead.php
  • Класс: \CAllCrmLead
  • Вызов: CAllCrmLead::getCompatibilityAdapter
private function getCompatibilityAdapter(): Crm\Entity\Compatibility\Adapter
{
	if (!$this->compatibilityAdapter)
	{
		$this->compatibilityAdapter = static::createCompatibilityAdapter();

		if ($this->compatibilityAdapter instanceof Crm\Entity\Compatibility\Adapter\Operation)
		{
			$this->compatibilityAdapter
				//bind newly created adapter to this instance
				->setCheckPermissions((bool)$this->bCheckPermission)
				->setErrorMessageContainer($this->LAST_ERROR)
				->setCheckExceptionsContainer($this->checkExceptions)
			;
		}
	}

	return $this->compatibilityAdapter;
}

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