• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/services/automatic.php
  • Класс: BitrixSaleDeliveryServicesAutomatic
  • Вызов: Automatic::getAdditionalInfoShipmentView
public function getAdditionalInfoShipmentView(Shipment $shipment)
{
	$result = '';

	if(isset($this->handlerInitParams["GET_ADD_INFO_SHIPMENT_VIEW"]) && is_callable($this->handlerInitParams["GET_ADD_INFO_SHIPMENT_VIEW"]))
	{
		$result = call_user_func(
			$this->handlerInitParams["GET_ADD_INFO_SHIPMENT_VIEW"],
			$shipment
		);

		if(!is_array($result))
			throw new SystemException('GET_ADD_INFO_SHIPMENT_VIEW return value must be array!');
	}

	return $result;
}