• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/entity/userprofileimport.php
  • Класс: BitrixSaleExchangeEntityUserProfileImport
  • Вызов: UserProfileImport::load
public function load(array $fields)
{
	$result = $this->checkFields($fields);

	if($result->isSuccess())
	{
		if(!empty($fields['ID']))
		{
			$user = UserTable::getById($fields['ID']);
			if($fields = $user->fetch())
			{
				$userProfile = new static();
				$userProfile->setFields($fields);

				$this->setEntity($userProfile);
			}
		}
	}

	return $result;
}