Factory::getCompatibleFieldsMapper

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Factory
  4. getCompatibleFieldsMapper
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/options/integration/factory.php
  • Класс: Bitrix\Crm\WebForm\Options\Integration\Factory
  • Вызов: Factory::getCompatibleFieldsMapper
static function getCompatibleFieldsMapper(string $type, Integration $integration) : Integration\IFieldMapper
{
	switch ($type)
	{
		case self::TYPE_VKONTAKTE:
				return new Compatible\VkontakteFieldsMapper($integration->getForm());
		case self::TYPE_FACEBOOK :
				return new Compatible\FacebookFieldsMapper($integration->getForm());
		default:
			throw new NotImplementedException("$type is not implemented");
	}
}

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