...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/import/outlookcsvfileimport.php
- Класс: Bitrix\Crm\Import\OutlookCsvFileImport
- Вызов: OutlookCsvFileImport::getAddresses
public function getAddresses(&$data) { $map = $this->headerMap; if($map === null) { throw new Main\SystemException("Invalid operation. HeaderMap is not assigned."); } $result = array(); foreach(self::$addressTypes as $type) { $typeUC = mb_strtoupper($type); $info = $this->getAddress( $data, $map, array( 'STREET' => $this->getFiledAlias("{$typeUC}_STREET"), 'CITY' => $this->getFiledAlias("{$typeUC}_CITY"), 'STATE' => $this->getFiledAlias("{$typeUC}_STATE"), 'COUNTRY' => $this->getFiledAlias("{$typeUC}_COUNTRY"), 'POSTAL_CODE' => $this->getFiledAlias("{$typeUC}_POSTAL_CODE"), ) ); if(!empty($info)) { $result[$type] = &$info; } unset($info); } return $result; }