• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/entity/userimportbase.php
  • Класс: BitrixSaleExchangeEntityUserImportBase
  • Вызов: UserImportBase::getPropertyOrdersByConfig
public function getPropertyOrdersByConfig($personalTypeId, $profile, $property)
{
	$result = array();

	if($fieldsConfig = $this->getFieldsConfig($personalTypeId, $profile))
	{
		if(is_array($fieldsConfig))
		{
			foreach($fieldsConfig as $k => $v)
			{
				if(!isset($v['VALUE']))
					continue;

				if(!empty($property[$k]))
				{
					$result[$v["VALUE"]] = $property[$k];
				}

				if(empty($result[$v["VALUE"]]) && !empty($profile[$v["VALUE"]]))
				{
					$result[$v["VALUE"]] = $profile[$v["VALUE"]];
				}
			}
		}
	}
	return $result;
}