• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/integration/pullmanager.php
  • Класс: BitrixRpaIntegrationPullManager
  • Вызов: PullManager::getTypeIdByModel
protected function getTypeIdByModel($object): ?int
{
	if(is_numeric($object))
	{
		return (int)$object;
	}

	if($object instanceof Item)
	{
		return $object->getType()->getId();
	}

	if($object instanceof Stage)
	{
		return $object->getType()->getId();
	}

	if($object instanceof Type)
	{
		return $object->getId();
	}

	return null;
}