• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/services/automatic_profile.php
  • Класс: BitrixSaleDeliveryServicesAutomaticProfile
  • Вызов: AutomaticProfile::inheritParams
protected function 	inheritParams()
{
	if($this->name == '') $this->name = $this->parentAutomatic->getName();
	if(intval($this->logotip) <= 0) $this->logotip = $this->parentAutomatic->getLogotip();
	if($this->description == '') $this->description = $this->parentAutomatic->getDescription();
	if($this->trackingClass == '') $this->trackingClass = $this->parentAutomatic->getTrackingClass();

	$parentTP = $this->parentAutomatic->getTrackingParams();

	if(is_array($parentTP) && !empty($parentTP))
	{
		if(empty($this->trackingParams) || !is_array($this->trackingParams))
		{
			$this->trackingParams = $parentTP;
		}
		else
		{
			foreach($this->trackingParams as $k => $v)
				if(empty($v) && !empty($parentTP[$k]))
					$this->trackingParams[$k] = $parentTP[$k];
		}
	}
}