YahooCsvFileImport::getPhones

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

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

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