• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/location.php
  • Класс: BitrixLocationEntityLocation
  • Вызов: Location::copyDataFrom
public function copyDataFrom(Location $otherLocation): void
{
	$this->setId($otherLocation->getId())
		->setCode($otherLocation->getCode())
		->setExternalId($otherLocation->getExternalId())
		->setSourceCode($otherLocation->getSourceCode())
		->setType($otherLocation->getType())
		->setName($otherLocation->getName())
		->setLanguageId($otherLocation->getLanguageId())
		->setLatitude($otherLocation->getLatitude())
		->setLongitude($otherLocation->getLongitude());

		if($address = $otherLocation->getAddress())
		{
			$this->setAddress($address);
		}
}