CAllCrmCompany::getCompatibilityAdapter

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmCompany
  4. getCompatibilityAdapter
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_company.php
  • Класс: \CAllCrmCompany
  • Вызов: CAllCrmCompany::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;
}

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