EntityUfAddressConvertAgent::getSourceEntityTypeId

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. EntityUfAddressConvertAgent
  4. getSourceEntityTypeId
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/agent/requisite/entityufaddressconvertagent.php
  • Класс: Bitrix\Crm\Agent\Requisite\EntityUfAddressConvertAgent
  • Вызов: EntityUfAddressConvertAgent::getSourceEntityTypeId
public function getSourceEntityTypeId()
{
	$result = \CCrmOwnerType::Undefined;

	$optionValue = $this->getOption('SOURCE_ENTITY_TYPE_ID');
	if ($optionValue > 0)
	{
		$sourceEntityTypeId = (int)$optionValue;
		if (\CCrmOwnerType::IsDefined($sourceEntityTypeId))
		{
			$result = $sourceEntityTypeId;
		}
	}

	return $result;
}

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