FacebookFieldsMapper::getFieldsMapper

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

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