• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/landing/landing.php
  • Класс: BitrixSaleTradingPlatformLandingLanding
  • Вызов: Landing::getInfo
public function getInfo()
{
	if (!MainLoader::includeModule('landing'))
	{
		return [];
	}

	if ($this->site)
	{
		return $this->site;
	}

	/** @var MainDBResult $dbRes */
	$dbRes = BitrixLandingSite::getList([
		'filter' => [
			'=ID' => $this->getSiteId(),
			'CHECK_PERMISSIONS' => 'N',
			'=DELETED' => ['Y', 'N'],
		]
	]);

	if ($data = $dbRes->fetch())
	{
		$this->site = $data;
		$this->site['PUBLIC_URL'] = BitrixLandingSite::getPublicUrl($this->getSiteId());
	}

	return $this->site;
}