• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/landing/landing.php
  • Класс: BitrixSaleTradingPlatformLandingLanding
  • Вызов: Landing::getExternalLink
public function getExternalLink($type, SaleOrder $order)
{
	if ($type === static::LINK_TYPE_PUBLIC_DETAIL_ORDER)
	{
		return $this->getLandingSysPageUrl(
			'personal',
			[
				'SECTION' => 'orders',
				'ID' => $order->getId()
			]
		);
	}

	if ($type === static::LINK_TYPE_PUBLIC_FEEDBACK)
	{
		return $this->getLandingSysPageUrl('feedback');
	}

	throw new MainArgumentException("Unsupported link type: {$type}");
}