• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradebindingentity.php
  • Класс: BitrixSaleTradeBindingEntity
  • Вызов: TradeBindingEntity::getTradePlatform
public function getTradePlatform()
{
	if ($this->tradePlatform === null)
	{
		if ($this->getField('TRADING_PLATFORM_ID') > 0)
		{
			$dbRes = TradingPlatformTable::getList([
				'select' => ['CODE'],
				'filter' => [
					'=ID' => $this->getField('TRADING_PLATFORM_ID')
				]
			]);

			if ($item = $dbRes->fetch())
			{
				$this->tradePlatform = TradingPlatformLandingLanding::getInstanceByCode($item['CODE']);
			}
		}
	}

	return $this->tradePlatform;
}