• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/import/yahoocsvfileimport.php
  • Класс: Bitrix\Crm\Import\YahooCsvFileImport
  • Вызов: YahooCsvFileImport::getInstantMessengers
public function getInstantMessengers(&$data)
{
	$map = $this->headerMap;
	if($map === null)
	{
		throw new Main\SystemException("Invalid operation. HeaderMap is not assigned.");
	}

	$result = array();
	$value = '';
	foreach(self::$imTypes as $type)
	{
		if($this->tryToGetValue("{$type} ID", $data, $value, $map, true) && $value !== '')
		{
			$result[] = array(
				'VALUE_TYPE' => $type,
				'VALUE' => $value
			);
		}
	}
	return $result;
}